6
Bagaimana saya memberi tahu matplotlib bahwa saya sudah selesai dengan plot?
Kode berikut memplot ke dua file PostScript (.ps), tetapi yang kedua berisi kedua baris. import matplotlib import matplotlib.pyplot as plt import matplotlib.mlab as mlab plt.subplot(111) x = [1,10] y = [30, 1000] plt.loglog(x, y, basex=10, basey=10, ls="-") plt.savefig("first.ps") plt.subplot(111) x = [10,100] y = [10, 10000] plt.loglog(x, y, basex=10, basey=10, …
165
python
matplotlib
plot