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
Post a Comment