-
-
Notifications
You must be signed in to change notification settings - Fork 8.3k
Open
Labels
Description
Bug summary
This bug occurs when I plot markers with rotation transforms, store them in markers, and update the fillstyle of markers, which accidentally resets the rotation transforms.
Code for reproduction
import matplotlib.pyplot as plt
from matplotlib.transforms import Affine2D
from matplotlib.markers import MarkerStyle
angles = [-20, 0, 20]
fig, ax = plt.subplots()
markers = []
for x, theta in enumerate(angles):
lst = ax.plot(x, 0, marker=MarkerStyle('*', transform=Affine2D().rotate_deg(theta)), markersize=100)
markers.extend(lst)
for marker in markers:
marker.set_fillstyle('left')
plt.show()Actual outcome
Expected outcome
Additional information
No response
Operating system
No response
Matplotlib Version
3.10.8
Matplotlib Backend
No response
Python version
No response
Jupyter version
No response
Installation
None
Reactions are currently unavailable