bugGNU Octave - Bugs: bug #52842, Implement "none" as a...


bug #52842: Implement "none" as a standard option for graphics color properties

Submitted by:  Rik <rik5>
Submitted on:  Tue 09 Jan 2018 01:07:40 AM UTC  
Category:  Plotting Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Feature Request
Status:  Confirmed Assigned to:  None
Originator Name:  Open/Closed:  Open
Release:  dev Operating System:  Any

Add a New Comment(Rich Markup)

You are not logged in

Please log in, so followups can be emailed to you.


Tue 09 Jan 2018 01:07:40 AM UTC, original submission:

It seems that most (all?) Matlab graphics objects which support a color property support the value of "none". This is in addition to either a string like "magenta" or a 1x3 RGB specification.

The advantage of having no color is it allows for very selective disabling of pieces of the plot. For example, How do you create a baseline along the X-axis and NO Y-axis? You can't use the "visible" property of the axes object because that will disable everything. If "none" was an option then you could do

and get what you want quite simply.

This is really just extending a feature that has already existed for certain graphic objects, to all graphic objects. For example, the a surface primitive object has EdgeColor and FaceColor properties. If I want a mesh-style graph then I set EdgeColor to some value and FaceColor to "none". Conversely if I just want a surface then I set FaceColor to some value and EdgeColor to "none".

This should be relatively simple. libinterp/corefcn/graphics.in.h needs to be amended to have "none" be a valid radio_property. See the code for color property of the figure object:

Second, the toolkits that actually draw things need to be updated. This is libinterp/corefcn/gl-render.cc for FLTK and Qt toolkits, or scripts/plot/util/private/__gnuplot_draw_axes__.m for gnuplot. I care more about the OpenGl toolkits though.

Rik <rik5>
Project Administrator


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

Attach Files:

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 (Submitted the item)

    Do you think this task is very important?
    If so, you can add your encouragement to it.
    This task has 0 encouragements so far.

    Only project members can vote.




    No changes have been made to this item

    Back to the top

    Powered by Savane 3.3