爲什麼在下面的腳本不是「XLIM」的工作:如何在Python中爲plot設置xlim?
from pylab import *
from numpy import *
x = linspace (0, 2*pi, 100)
y = sin (x)
clf()
plot (x, y, 'b-', label = "sin (x)")
xlim (0, 2*pi)
axis ('equal')
grid()
legend()
show()
爲什麼在下面的腳本不是「XLIM」的工作:如何在Python中爲plot設置xlim?
from pylab import *
from numpy import *
x = linspace (0, 2*pi, 100)
y = sin (x)
clf()
plot (x, y, 'b-', label = "sin (x)")
xlim (0, 2*pi)
axis ('equal')
grid()
legend()
show()
它適用於我... –
它也適用於我... –