1#One way to plot two figure at once
2f = plt.figure(1)
3plt.plot([1,2],[2,3])
4f.show()
5
6g = plt.figure(2)
7plt.plot([2,7,3],[5,1,9])
8g.show()
1fig = plt.figure()
2
3# total_rows, total_columns, subplot_index(1st, 2nd, etc..)
4plt.subplot(2, 2, 1)
5plt.plot(x, y)
6
7plt.subplot(2, 2, 2)
8plt.plot(x, y)
9
10plt.subplot(2, 2, 3)
11plt.plot(x, y)
12
13plt.subplot(2, 2, 4)
14plt.plot(x, y)
1import matplotlib.pyplot as plt
2
3plt.plot(<X AXIS VALUES HERE>, <Y AXIS VALUES HERE>, 'line type', label='label here')
4plt.plot(<X AXIS VALUES HERE>, <Y AXIS VALUES HERE>, 'line type', label='label here')
5plt.legend(loc='best')
6plt.show()
1f = plt.figure(1)
2plt.hist........
3............
4f.show()
5
6g = plt.figure(2)
7plt.hist(........
8................
9g.show()
10
11raw_input()