bugGNU Octave - Bugs: bug #38683, "color" parameter in...

 
 

bug #38683: "color" parameter in text command does nothing

Submitter:  Michael Godfrey <godfrey>
Submitted:  Mon 08 Apr 2013 06:32:34 PM UTC
   
 
Category:  Plotting with OpenGL Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Regression
Status:  Fixed Assigned to:  None
Originator Name:  Michael Godfrey Open/Closed:  * Closed
Release:  * dev Operating System:  * GNU/Linux
Fixed Release:  None Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Jump to the original submission

Tue 02 Jul 2013 12:25:20 AM UTC, comment #8: 

Fixed in original report of #37007.

Rik <rik5>
Group administrator
Mon 24 Jun 2013 12:52:58 AM UTC, comment #7: 

This is the third time that this bug has been reported.  See bug #37007 for the original report.

Apparently an updater of some sort is failing to fire when setting the color of text objects.  However, if the text string is changed so that it needs to be re-drawn then the color is respected.

Sample code:


ht = text (0.5, 0.5, "Hello World");
set (ht, 'color', 'r');  # no effect, text still black
get (ht, 'color')       # But, property/value is updated correctly
[1 0 0]
set (ht, 'string', 'Goodbye World'); # now text is red


Rik <rik5>
Group administrator
Tue 16 Apr 2013 12:55:00 PM UTC, comment #6: 

just adding that the print output has the correct color, even with fltk (and the current tip).

Muhali <muhali>
Wed 10 Apr 2013 11:41:46 PM UTC, comment #5: 

Rik,

I just noticed your comment below that it does not
work for you in 3.6.4.  For me (Fedora 18 release
of 3.6.4 it definitely fails using fltk
but works using gnuplot.  This is the same as the
current devel system.

I just looked at my original report and it appears
that I did not include the fact that I was using fltk. 

Sorry.

Michael Godfrey <godfrey>
Group Member
Wed 10 Apr 2013 11:31:02 PM UTC, comment #4: 

And, I just checked and found that it works when
using gnuplot in the current devel.

So, the regression only affects fltk.

Michael Godfrey <godfrey>
Group Member
Wed 10 Apr 2013 11:28:19 PM UTC, comment #3: 

I got a little closer: it works in 3.6.4.

I do not have any versions between 3.6.4 and the current devel.

Michael Godfrey <godfrey>
Group Member
Wed 10 Apr 2013 06:55:43 PM UTC, comment #2: 

I just checked with version 3.4.3 and it worked there.  So it is definitely a regression.  Did it used to work on the 3.7 branch?

Rik <rik5>
Group administrator
Wed 10 Apr 2013 06:45:29 PM UTC, comment #1: 

Can you use hg bisect to discover the changeset that caused this regression?  The code doesn't work for 3.6.4.  Did it ever work in the development version?

Rik <rik5>
Group administrator
Mon 08 Apr 2013 06:32:34 PM UTC, original submission:  

plot(1:200)
text(0,50,"red text","color","red")

Displays the text "red text" in black.
For colors that I have tried none work, so it
appears that the "color" parameter has stopped
working.
The parameter "color" is recognized since
text(0,50,"red text","color","xxx")
produces:
error: invalid color specification: xxx
error: invalid value for color property "color" (value = xxx)
error: called from:
error:   /usr/local/share/octave/3.7.2+/m/plot/text.m at line 126, column 13

Michael Godfrey <godfrey>
Group Member

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

No files currently attached

 

Digest:
   bug dependencies.

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by rik5 (Posted a comment)
  • -email is unavailable- added by godfrey (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only group members can vote.

     

    Follow 4 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2013-07-02 rik5 StatusDuplicate Fixed
        Open/ClosedOpen Closed
    2013-06-24 rik5 StatusNone Duplicate
        Dependencies- Depends on bugs #37007

    Back to the top

    Powered by Savane 3.13-cf05.
    Corresponding source code