有没有办法在绘图中删除x/y轴上的数字(值)?
不过我还是想保留绘图中的边框和网格。
/Jonas
from matplotlib import pylab
x = [1,2,3,4,5]
y = [2,4,6,8,10]
pylab.plot(x,y)
frame = pylab.gca()
frame.axes.get_xaxis().set_ticks([])
frame.axes.get_yaxis().set_ticks([])
pylab.show()
NullLocator
和 NullFormatter
。 - tacaswell