bugGNU Octave - Bugs: bug #57129, Implement stem plot value...

 
 

bug #57129: Implement stem plot value "auto" for property "MarkerEdgeColor"

Submitter:  Alois Schlögl <schloegl>
Submitted:  Mon 28 Oct 2019 08:14:00 AM UTC
   
 
Category:  Plotting Severity:  2 - Minor
Priority:  3 - Low Item Group:  Matlab Compatibility
Status:  Confirmed Assigned to:  None
Originator Name:  Open/Closed:  * Open
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

Sun 17 Nov 2019 03:57:03 PM UTC, comment #7: 

I filed a separate bug report about stem() missing other graphics properties like ColorMode.  See bug #57249.

Rik <rik5>
Group administrator
Sun 17 Nov 2019 02:57:45 AM UTC, comment #6: 

The issue is the property "MarkerEdgeColor".  In Matlab, this accepts string color values (e.g., 'k' or 'r'), RGB color values (e.g., [1, 0, 0]), and the special string value "auto".

In the case of "auto", Matlab uses the value of the "Color" property for the value of "MarkerEdgeColor".  The issue is that Octave only implements an actual color specification.  Re-titling the bug to reflect that.

In the meantime, there is a simple workaround of using a LineSpecification argument to stem.  This is Matlab-compatible so when coded this way will work in either language.

Instead of


stem (1:100, 'color', 'k')


try


stem (1:100, 'k')



Rik <rik5>
Group administrator
Sat 16 Nov 2019 10:10:24 PM UTC, comment #5: 

I checked older versions of matlab (back to R2013a), in all cases, the color of the stem and the marker was always the same; this behavior does not seem to depend on some new properties in recent matlab versions.





Alois Schlögl <schloegl>
Tue 29 Oct 2019 02:34:51 PM UTC, comment #4: 

That would be part of the same changeset.  Matlab has changed the implementation of various stem properties as well as adding new ones.  It all needs to be addressed at once.

Rik <rik5>
Group administrator
Tue 29 Oct 2019 09:41:03 AM UTC, comment #3: 

But matlab doc for MarkerEdgeColor says:


Marker outline color, specified as 'auto', an RGB triplet, a hexadecimal color code, a color name, or a short name. The default value of 'auto' uses the same color as the Color property


A.R. Burgers <arb>
Tue 29 Oct 2019 12:40:01 AM UTC, comment #2: 

Properties that are missing in Octave:

ColorMode
LineStyleMode
MarkerMode
XDataMode
DataTipTemplate


Rik <rik5>
Group administrator
Tue 29 Oct 2019 12:33:35 AM UTC, comment #1: 

Do you know when this changed in Matlab?  The documentation very clearly says that 'color' refers to the stem color, and not to the markercolor property.  See https://www.mathworks.com/help/matlab/ref/stem.html.

If you you look at the properties (https://www.mathworks.com/help/matlab/ref/matlab.graphics.chart.primitive.stem-properties.html) it appears that Matlab has added new properties recently that Octave does not yet implement.

Rik <rik5>
Group administrator
Mon 28 Oct 2019 08:14:00 AM UTC, original submission:  


When using stem() with an 'color' argument, like this 

  stem([1:100],'color','k')

or

  stem([1:100],'color',[1,1,1]*2/3)

the color is applied only to the vertical lines and not to the marker symbols.

In Matlab, the color is applied to the lines and the marker symbols. I'd also prefer this behavior.

I've tested this on GNU/Linux with qt, fltk and gnuplot on octave 4.4.1, and octave-development (version 6.0.0) compiled from source on 2019-09-27





Alois Schlögl <schloegl>

 

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

Attach Files:
   
   
Comment:
   

Attached Files
file #47757:  stem_marker_color.png added by schloegl (18KiB - image/png)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by arb (Posted a comment)
  • -email is unavailable- added by rik5 (Posted a comment)
  • -email is unavailable- added by schloegl (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 6 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2019-11-17 rik5 Severity3 - Normal 2 - Minor
        Priority5 - Normal 3 - Low
        SummaryAdd new stem plot properties such as ColorMode present in latest Matlab versions Implement stem plot value "auto" for property "MarkerEdgeColor"
    2019-10-29 rik5 StatusNone Confirmed
        Summarystem(...'color',..): color does not affect marker Add new stem plot properties such as ColorMode present in latest Matlab versions
    2019-10-28 schloegl Attached File- Added stem_marker_color.png, #47757

    Back to the top

    Powered by Savane 3.14-3b9d.
    Corresponding source code