You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I found that providing the sharex keyword argument to subplot clears previously drawn lines from the axes:
import matplotlib.pyplot as plt
plt.figure()
ax = plt.subplot(2,1,1)
plt.subplot(2,1,2)
plt.plot([1,2,3])
# why the following clears the plotted line???
plt.subplot(2,1,2, sharex=ax)
I suppose it is a bug?
The text was updated successfully, but these errors were encountered:
Ok, so if I call subplot with a different sharex value than before, it will create a new axes object. (?) Good to know, I did not notice this info in the docs. Thanks!
I found that providing the
sharex
keyword argument to subplot clears previously drawn lines from the axes:I suppose it is a bug?
The text was updated successfully, but these errors were encountered: