user3765587 user3765587 - 1 year ago 433
Python Question

How to show an AxesSubplot in Python?

I have an object fig2 that is a class mathplotlib.axes.axessubplot, but when I try to execute, python says axessubplot object has no attribute show. How can I show AxesSubplot?

Answer Source

You should call, which is a method that displays all the figures.

If you have imported as plt, then:

import matplotlib.pyplot as plt

# create fig1 (of type plt.figure)
# create fig2  # will display fig1 and fig2 in different windows
Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download