Matplotlib Axis Designations

How to reduce tick count on axes using matplotlib (without using pyplot)?

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') 

now....?

+4
source share
1 answer

In pyplot it was xticks(...) , but I could not find it in matplotlib.

Turns out you should use set_xticks

+3
source

Source: https://habr.com/ru/post/1336722/


All Articles