bugGNU Octave - Bugs: bug #44224, plot/plot3 do not accept...

 
 

bug #44224: plot/plot3 do not accept "color", "none"

Submitter:  Philip Nienhuis <philipnienhuis>
Submitted:  Tue 10 Feb 2015 08:48:33 PM UTC
   
 
Category:  Plotting Severity:  2 - Minor
Priority:  5 - Normal Item Group:  Matlab Compatibility
Status:  Fixed Assigned to:  None
Originator Name:  Philip Nienhuis Open/Closed:  * Closed
Release:  * dev Operating System:  * Any
Fixed Release:  None Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Tue 24 Nov 2015 05:43:57 PM UTC, comment #4: 

Thanks Rik, this is very useful

Philip Nienhuis <philipnienhuis>
Group Member
Tue 24 Nov 2015 01:27:58 AM UTC, comment #3: 

This was way easier to implement than I expected.  I added support for line objects to have color = "none" in this changeset (http://hg.savannah.gnu.org/hgweb/octave/rev/f90295782d60).  Marking as fixed and closing report.

Rik <rik5>
Group administrator
Tue 10 Feb 2015 09:53:22 PM UTC, comment #2: 

Thanks Rik, I knew about "visible".

Point is, sometimes it can be handy to select colors, including "none", through a sort of jump table. To also include another graphics property ("visible") for specific cases leads to quite a bit of unwarranted complexity.

The ML incompatibility still stands.

Philip Nienhuis <philipnienhuis>
Group Member
Tue 10 Feb 2015 08:56:03 PM UTC, comment #1: 

It's not just plot3, plot also behaves the same way.  There's an easy workaround that I actually think is better.  If you don't want to see an object change the "visible" attribute to "off".  That makes it clear that your intention was not to show the object.


plot3 ([0 1], [2 3], [4 5], 'visible', 'off')


Rik <rik5>
Group administrator
Tue 10 Feb 2015 08:48:33 PM UTC, original submission:  

Subject says all (I think), but to clarify (w. 3.9.1+ on Windows):

>> plot3 ([0 1], [2 3], [4 5], "color", "none")
error: invalid color specification: none
error: called from
    __line__ at line 119 column 16
    line at line 56 column 8
    plot3 at line 345 column 21
error: invalid value for color property "color" (value = none)
error: called from
    __line__ at line 119 column 16
    line at line 56 column 8
    plot3 at line 345 column 21


.. and a 3D-plot with a blue line is produced.

Matlab r2015a (prerelease) happily accepts "none" as color and produces an empty 3D-plot, as expected:

>> plot3 ([0 1], [2 3], [4 5], 'color', 'none')
>>


While plotting a line w/o color may look nonsensical at first sight, it does come in handy at times.

Philip Nienhuis <philipnienhuis>
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

 

Depends on the following items: None found

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 philipnienhuis (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
    2015-11-24 rik5 StatusNone Fixed
        Open/ClosedOpen Closed
    2015-02-10 rik5 Severity3 - Normal 2 - Minor
        Summaryplot3 does not accept &quot;color&quot;, &quot;none&quot; plot/plot3 do not accept "color", "none"

    Back to the top

    Powered by Savane 3.13-d3ae.
    Corresponding source code