bugGNU Octave - Bugs: bug #58030, function polar does not accept...

 
 

bug #58030: function polar does not accept property/value pairs

Submitter:  None
Submitted:  Mon 23 Mar 2020 10:36:48 PM UTC
   
 
Category:  Plotting Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Unexpected Error or Warning
Status:  Wont Fix Assigned to:  None
Originator Name:  Originator Email:  -email is unavailable-
Open/Closed:  * Closed Release:  * 5.2.0
Operating System:  * Any Fixed Release:  None
Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Tue 24 Mar 2020 11:57:24 PM UTC, comment #3: 

Try 'help plot'.  The calling forms are


 -- plot (Y)
 -- plot (X, Y)
 -- plot (X, Y, FMT)
 -- plot (..., PROPERTY, VALUE, ...)


FMT is listed separately because it is not the same as "PROPERTY", "VALUE" pairs.

Further on, FMT is defined


Multiple property-value pairs may be specified, but they must
appear in pairs.  These arguments are applied to the line objects
drawn by 'plot'.  Useful properties to modify are "linestyle",
"linewidth", "color", "marker", "markersize", "markeredgecolor",
"markerfacecolor".  See Line Properties.

The FMT format argument can also be used to control the plot style.
It is a string composed of four optional parts:
"<linestyle><marker><color><;displayname;>".  When a marker is
specified, but no linestyle, only the markers are plotted.
Similarly, if a linestyle is specified, but no marker, then only
lines are drawn.  If both are specified then lines and markers will
be plotted.  If no FMT and no PROPERTY/VALUE pairs are given, then
the default plot style is solid lines with no markers and the color
determined by the "colororder" property of the current axes.

Format arguments:

linestyle

     '-'  Use solid lines (default).
     '--' Use dashed lines.
     ':'  Use dotted lines.
     '-.' Use dash-dotted lines.

marker

     '+'  crosshair
     'o'  circle
     '*'  star
     '.'  point
     'x'  cross
     's'  square
     'd'  diamond
     '^'  upward-facing triangle
     'v'  downward-facing triangle
     '>'  right-facing triangle
     '<'  left-facing triangle
     'p'  pentagram
     'h'  hexagram

color

     'k'  blacK
     'r'  Red
     'g'  Green
     'b'  Blue
     'y'  Yellow
     'm'  Magenta
     'c'  Cyan
     'w'  White

";displayname;"
     Here "displayname" is the label to use for the plot legend.


Nothing wrong with the manual.


Rik <rik5>
Group administrator
Tue 24 Mar 2020 11:08:17 PM UTC, comment #2: 

In the manual, the second way of calling polar, the 3-rd parameter FMT, is referred to function plot. In function plot the FMT parameter property/value pairs is supported. Therefor the manual is wrong.

Naftali Kidron <kauftheil>
Tue 24 Mar 2020 01:48:30 AM UTC, comment #1: 

Try 'help polar':


 -- polar (THETA, RHO)
 -- polar (THETA, RHO, FMT)
 -- polar (CPLX)
 -- polar (CPLX, FMT)
 -- polar (HAX, ...)
 -- H = polar (...)


You can see that calling the function with property/value pairs such as "markerfacecolor", "auto" is not supported.

Matlab doesn't support this syntax either.  See https://www.mathworks.com/help/matlab/ref/polar.html.



Rik <rik5>
Group administrator
Mon 23 Mar 2020 10:36:48 PM UTC, original submission:  


fi = linspace (-pi, pi, 8)
r = 1 : 8
polar (fi, r, "s", "markerfacecolor", "auto")

produces "error: Invalid call to polar."
but in 2 stages

H = polar (fi, r, "s")
set (H, "markerfacecolor", "auto")

is accepted.

Anonymous

 

(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 kauftheil (Posted a comment)
  • -email is unavailable- added by rik5 (Posted a comment)
  • -email is unavailable- added by None (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
    2020-03-24 rik5 StatusNone Wont Fix
        Open/ClosedOpen Closed
        Operating SystemMicrosoft Windows Any
        Summaryfunction polar does not accept legal FMT function polar does not accept property/value pairs

    Back to the top

    Powered by Savane 3.13-758e.
    Corresponding source code