matplotlib - How to show an AxesSubplot in Python? -
i have object fig2 class mathplotlib.axes.axessubplot, when seek execute fig2.show(), python says axessubplot object has no attribute show. how can show axessubplot?
you should phone call matplotlib.pyplot.show()
, method displays figures.
if have imported plt
, then:
import matplotlib.pyplot plt # create fig1 (of type plt.figure) # create fig2 plt.show() # display fig1 , fig2 in different windows
python matplotlib
No comments:
Post a Comment