bugGNU Octave - Bugs: bug #47594, Marker style in scatter plot is...

 
 

bug #47594: Marker style in scatter plot is not well documented

Submitted by:  None
Submitted on:  Fri 01 Apr 2016 09:47:19 AM UTC  
 
Category: PlottingSeverity: 3 - Normal
Priority: 5 - NormalItem Group: Matlab Compatibility
Status: ConfirmedAssigned to: None
Originator Name: SamuelOriginator Email: -unavailable-
Open/Closed: OpenRelease: 4.0.0
Operating System: Any

Add a New Comment(Rich Markup)
   

You are not logged in

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

 

Fri 01 Apr 2016 03:05:50 PM UTC, comment #1:

Thanks for the bug report, confirmed here.

These work as workarounds.

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:

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

Mike Miller <mtmiller>
Project Administrator
Fri 01 Apr 2016 09:47:19 AM UTC, original submission:

Hi,

In the doc of the scatter function, it is said:

The marker to use can be changed with the STYLE argument, that is a string defining a marker in the same manner as the 'plot' command.

However :

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

results in the following error :

error: invalid color specification: .r
error: called from
_scatter_ at line 178 column 11
scatter at line 86 column 10
error: invalid value for color property "markeredgecolor" (value = .r)
error: called from
_scatter_ at line 178 column 11
scatter at line 86 column 10

The correct syntax is :

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

but this is not "in the same manner as the 'plot' command'.

The doc or the scatter command have to be updated.

Anonymous

 

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

Attach File(s):
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by mtmiller (Posted a comment)
  • -unavailable- added by None (Submitted the item)
  •  

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

    Only project members can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 3 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Fri 01 Apr 2016 03:05:50 PM UTCmtmillerItem GroupDocumentation=>Matlab Compatibility
      StatusNone=>Confirmed
      Operating SystemGNU/Linux=>Any

    Back to the top


    Powered by Savane 3.1-cleanup1