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
import matplotlib.pyplot as plt
fig = plt.figure()
ax = fig.add_subplot(2,1,1)
import numpy as np
t = np.arange(0.0, 1.0, 0.01)
s = np.sin(2_np.pi_t)
line, = ax.plot(t, s, color='blue', lw=2)
ax.lines[0]
when i enter codes above in console,there is nothing happened about the figure,no line ,no subplot.
why?
The text was updated successfully, but these errors were encountered:
I suggest you ask this on the spyder discussion list, giving additional information such as what version of spyder you are running, what version of matplotlib, on what operating system, and installed by what method.
But first, have you tried ending with plt.show() or plt.draw(()? I don't know how spyder handles interactive plotting, but generally when using the object methods (e.g., ax.plot()) you need to explicitly trigger drawing. This is in contrast with pyplot, which draws automatically when in "interactive mode". Since you didn't even get a figure, I suspect this mode was not in effect.
I'm going to close this issue here because I don't think the matplotlib bug tracker is the appropriate venue.
import matplotlib.pyplot as plt
fig = plt.figure()
ax = fig.add_subplot(2,1,1)
import numpy as np
t = np.arange(0.0, 1.0, 0.01)
s = np.sin(2_np.pi_t)
line, = ax.plot(t, s, color='blue', lw=2)
ax.lines[0]
when i enter codes above in console,there is nothing happened about the figure,no line ,no subplot.
why?
The text was updated successfully, but these errors were encountered: