I have such code
import numpy as np
import matplotlib.pyplot as plt
import matplotlib.markers as 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 to 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 to create some custom MarkerStyle and use it for scatter functions, but this script failed in the scatter function.
Any ideas? Thanks. I'm using python 2.7.6 and mathplotlib 1.3.1 under WinXP.