setting ticks on y axis

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

setting ticks on y axis

matplotlib - users mailing list
Hi all,

I create boxplots with Mathplotlib but the label in the y axis are: 0, 20, 40, 60, 80, 100.

How can I set labels on the y axis to be 0, 10, 20, 30, 40, 50, 60, 70, 80, 90, 100 and fit data according to them?

Regards.

_______________________________________________
Matplotlib-users mailing list
[hidden email]
https://mail.python.org/mailman/listinfo/matplotlib-users
Reply | Threaded
Open this post in threaded view
|

Re: setting ticks on y axis

tcaswell
To adjust where the ticks are you want to set the 'locactors' on the y-axis.  See https://matplotlib.org/examples/ticks_and_spines/tick-locators.html for a nice example of the many ways you can do this.

What do you mean by 'and fit data according to them'?

Tom

On Sun, May 13, 2018 at 3:12 PM dark0s via Matplotlib-users <[hidden email]> wrote:
Hi all,

I create boxplots with Mathplotlib but the label in the y axis are: 0, 20, 40, 60, 80, 100.

How can I set labels on the y axis to be 0, 10, 20, 30, 40, 50, 60, 70, 80, 90, 100 and fit data according to them?

Regards.
_______________________________________________
Matplotlib-users mailing list
[hidden email]
https://mail.python.org/mailman/listinfo/matplotlib-users

_______________________________________________
Matplotlib-users mailing list
[hidden email]
https://mail.python.org/mailman/listinfo/matplotlib-users