Closed
Description
I want to set markers hollow. So I make a costomed markers.MarkerStyle
and set the paramter fillstyle='none'
. But I don't get what I want.
Code for reproduction
from matplotlib import pyplot as plt
from matplotlib import markers
import numpy as np
xy = 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 the matplotlib.markers.MarkerStyle, I find:
It seems that it doesn't process fillstyle='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