plot star instead of pentagram

hi all,
matplotlib says it's similar to MATLAB's plot tool, however, using plot(..., 'p') plots pentagram instead of star. It makes my (Python scikits.openopt) graphic output of numerical convergence look uglier than MATLAB version.

So is plotting a star intended to be ever implemented?
Thank you in advance, Dmitrey

Use scatter instead of plot where you can custom-define a marker with
an arbitrary number of sides in polygon, star or asterisk format.
E.g. to get a hexagonal star use:

scatter(xvalues,yvalues,marker=(6,1,0)

See also scatter docstring.

Johann

···

On Wednesday, 3 September 2008, dmitrey wrote:

hi all,
matplotlib says it's similar to MATLAB's plot tool, however, using
plot(..., 'p') plots pentagram instead of star. It makes my (Python
scikits.openopt) graphic output of numerical convergence look
uglier than MATLAB version.

So is plotting a star intended to be ever implemented?
Thank you in advance, Dmitrey

dmitrey wrote:

hi all,
matplotlib says it's similar to MATLAB's plot tool, however, using plot(..., 'p') plots pentagram instead of star. It makes my (Python scikits.openopt) graphic output of numerical convergence look uglier than MATLAB version.

So is plotting a star intended to be ever implemented?

Dmitrey,

It was easy, so I added a 5-point star to the set of available markers in svn. Use plot(..., '*'). 'p' was already taken, and '*' seems more mnemonic--I would never think of 'p' as indicating a star.

Eric

···

Thank you in advance, Dmitrey