1
我有下面的代碼,但我希望它們在同一個圖形上,但不同的子圖。繪製不同軸線類型的多個繪圖
創建不同軸的最簡單方法是什麼?
from pylab import *
figure(0)
x =1
y = 2
plot(x, y, marker ='^', linewidth=4.0)
xlabel('time (s)')
ylabel('cost ($)')
title('cost vs. time')
figure(1)
x = 4
y = 100
plot(x, y, marker ='^', linewidth=4.0)
xlabel('cost ($)')
ylabel('performance (miles/hr) ')
title('cost vs. time')
show()
真棒,但什麼是來標明這些次要情節,給每一個特定標題的命令...謝謝 – 2012-04-28 15:53:04
剛使用set_title()。我已經更新了這個例子。 – bmu 2012-04-29 18:59:09