Answers for "matplotlib 2 figures"

2

multiple plot in one figure python

import matplotlib.pyplot as plt

plt.plot(<X AXIS VALUES HERE>, <Y AXIS VALUES HERE>, 'line type', label='label here')
plt.plot(<X AXIS VALUES HERE>, <Y AXIS VALUES HERE>, 'line type', label='label here')
plt.legend(loc='best')
plt.show()
Posted by: Guest on May-07-2020
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 2 figures"

Python Answers by Framework

Browse Popular Code Answers by Language