Answers for "matplotlib open multiple graphs"

2

matplotlib multiple plots

fig = plt.figure()

# total_rows, total_columns, subplot_index(1st, 2nd, etc..)
plt.subplot(2, 2, 1)
plt.plot(x, y)

plt.subplot(2, 2, 2)
plt.plot(x, y)

plt.subplot(2, 2, 3)
plt.plot(x, y)

plt.subplot(2, 2, 4)
plt.plot(x, y)
Posted by: Guest on January-16-2021
0

open multiple plots python

f = plt.figure(1)
plt.hist........
............
f.show()

g = plt.figure(2)
plt.hist(........
................
g.show()

raw_input()
Posted by: Guest on December-22-2020

Code answers related to "matplotlib open multiple graphs"

Python Answers by Framework

Browse Popular Code Answers by Language