octave-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Octave-bug-tracker] [bug #47594] Marker style in scatter plot is not we


From: Mike Miller
Subject: [Octave-bug-tracker] [bug #47594] Marker style in scatter plot is not well documented
Date: Fri, 01 Apr 2016 15:05:51 +0000
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Firefox/45.0

Update of bug #47594 (project octave):

              Item Group: Incorrect Documentation => Matlab Compatibility   
                  Status:                    None => Confirmed              
        Operating System:               GNU/Linux => Any                    

    _______________________________________________________

Follow-up Comment #1:

Thanks for the bug report, confirmed here.

These work as workarounds.


scatter (rand (10, 1), rand (10, 1), 'r', '.');
scatter (rand (10, 1), rand (10, 1), 'red', '.');


It's worth noting that the Matlab help docs do not mention that plot-style
linespec arguments may be given, but several other examples from the Matlab
help also do not work in Octave:


>> x = rand (10, 1);
>> y = rand (10, 1);
>> a = 10;
## The fourth argument should accept a marker shape
>> scatter (x, y, a, 'd')
error: invalid color specification: d
error: invalid value for color property "markeredgecolor" (value = d)
error: called from
    __scatter__ at line 178 column 11
    scatter at line 86 column 10

## Property-value pairs after the marker size should work also
>> scatter (x, y, a, 'MarkerEdgeColor', [0 .5 .5], ...
            'MarkerFaceColor', [0 .7 .7], ...
            'LineWidth', 1.5)
error: invalid color specification: MarkerEdgeColor
error: invalid value for color property "markeredgecolor" (value =
MarkerEdgeColor)
error: called from
    __scatter__ at line 178 column 11
    scatter at line 86 column 10



>From https://www.mathworks.com/help/matlab/ref/scatter.html

    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?47594>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]