Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork7.9k
Closed
Labels
Milestone
Description
I want to set markers hollow. So I make a costomedmarkers.MarkerStyle
and set the paramterfillstyle='none'
. But I don't get what I want.
Code for reproduction
frommatplotlibimportpyplotaspltfrommatplotlibimportmarkersimportnumpyasnpxy=np.random.rand(10,2)fig,ax=plt.subplots()style=markers.MarkerStyle(marker='o',fillstyle='none')ax.scatter(xy[:,0],xy[:,1],marker=style)plt.show()
Actual outcome
Expected outcome
This is what I want.
When I check out the source code about thematplotlib.markers.MarkerStyle, I find:
It seems that it doesn't processfillstyle='none'
.
I don't know why. Maybe my usage is wrong. Could anyone help me?
Matplotlib version
- Operating system: Win10
- Matplotlib version: 3.1.1
- Python version: 3.6.6