matplotlib, why custom marker style is not allowed in scatter functions -


i have such code

import numpy np import matplotlib.pyplot plt import matplotlib.markers mks   plt.close('all') n = 50 x = np.random.rand(n) y = np.random.rand(n) colors = np.random.rand(n) area = np.pi * (15 * np.random.rand(n))**2 # 0 15 point radiuses mymkstyle = mks.markerstyle(marker=u'o', fillstyle=u'full') plt.scatter(x, y,color = 'k',s = 100, marker = mymkstyle ) plt.show() 

i try create custom markerstyle , use scatter functions, script failed in scatter function.

any ideas? thanks. i'm using python 2.7.6 , mathplotlib 1.3.1 under winxp.

although documentation states markerstyle type pass marker=, doesn't seem implemented correctly. bug has been reported on github.

plt.plot(x, y, marker='o', markersize=100, fillstyle='bottom') 

seems pretty you're looking for; of course, doesn't let treat marker styles objects.


Comments

Popular posts from this blog

java - Plugin org.apache.maven.plugins:maven-install-plugin:2.4 or one of its dependencies could not be resolved -

Round ImageView Android -

How can I utilize Yahoo Weather API in android -