[Matplotlib-users] setting ticks on y axis

Thomas Caswell tcaswell at gmail.com
Mon May 21 20:44:07 EDT 2018


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 <
matplotlib-users at python.org> 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
> Matplotlib-users at python.org
> https://mail.python.org/mailman/listinfo/matplotlib-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/matplotlib-users/attachments/20180521/e385ffc7/attachment.html>


More information about the Matplotlib-users mailing list