2011-01-23 297 views
4

如何使用matplotlib減少座標軸上的刻度數(不使用pyplot)?Matplotlib軸標籤

self.figure = Figure((2.0, 2.0)) 
    self.canvas = FigureCanvas(self.figure) 
    self.canvas.setParent(self) 
    self.axes = self.figure.add_subplot(111) 
    self.figure.subplots_adjust(left=0.18) 
    self.axes.fill(x, y, 'b') 

現在....?

回答

3

在pyplot中是xticks(...),但我無法在matplotlib中找到它。原來,你必須使用set_xticks