“Tampilkan beberapa plot Python” Kode Jawaban

Tampilkan beberapa plot Python

#One way to plot two figure at once
f = plt.figure(1)
plt.plot([1,2],[2,3])
f.show()

g = plt.figure(2)
plt.plot([2,7,3],[5,1,9])
g.show()
Average Joe

beberapa plot dalam satu tokoh ular sosok

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()
Joyous Jaguar

Buka beberapa plot Python

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

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

raw_input()
MitchAloha

Jawaban yang mirip dengan “Tampilkan beberapa plot Python”

Pertanyaan yang mirip dengan “Tampilkan beberapa plot Python”

Lebih banyak jawaban terkait untuk “Tampilkan beberapa plot Python” di Python

Jelajahi jawaban kode populer menurut bahasa

Jelajahi bahasa kode lainnya