私は次のコードを持っていますが、それらを同じグラフに配置したいのですが、サブプロットは異なります。
異なる軸を作成する最も簡単な方法は何ですか?
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()