'Change size of the value-axis on matplolib plot [duplicate]

The values on the y axis of this plot are too clustered, as seen where I labelled 1 in the picture.

The only was to make the numbers slightly visible is the reduce the value of labelsize= in the tick_params() method but that mades the values so small they are unreadable.

Do I have to plot all the points in the range of my list rainfall in line 16 or can I specifiy which labels I would like to place?

enter image description here



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source