<div dir="ltr">To adjust where the ticks are you want to set the 'locactors' on the y-axis.  See <a href="https://matplotlib.org/examples/ticks_and_spines/tick-locators.html">https://matplotlib.org/examples/ticks_and_spines/tick-locators.html</a> for a nice example of the many ways you can do this.<div><br></div><div>What do you mean by 'and fit data according to them'?</div><div><br></div><div>Tom</div></div><br><div class="gmail_quote"><div dir="ltr">On Sun, May 13, 2018 at 3:12 PM dark0s via Matplotlib-users <<a href="mailto:matplotlib-users@python.org">matplotlib-users@python.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div style="color:#000;background-color:#fff;font-family:Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif;font-size:13px"><div id="m_3362848159301673906yui_3_16_0_ym19_1_1526238247196_2477">Hi all,</div><div id="m_3362848159301673906yui_3_16_0_ym19_1_1526238247196_2468"><br></div><div dir="ltr" id="m_3362848159301673906yui_3_16_0_ym19_1_1526238247196_2467">I create boxplots with Mathplotlib but the label in the y axis are: 0, 20, 40, 60, 80, 100.</div><div dir="ltr" id="m_3362848159301673906yui_3_16_0_ym19_1_1526238247196_2525"><br></div><div dir="ltr" id="m_3362848159301673906yui_3_16_0_ym19_1_1526238247196_2526">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?</div><div dir="ltr" id="m_3362848159301673906yui_3_16_0_ym19_1_1526238247196_2555"><br></div><div dir="ltr" id="m_3362848159301673906yui_3_16_0_ym19_1_1526238247196_2534">Regards.</div></div></div>_______________________________________________<br>
Matplotlib-users mailing list<br>
<a href="mailto:Matplotlib-users@python.org" target="_blank">Matplotlib-users@python.org</a><br>
<a href="https://mail.python.org/mailman/listinfo/matplotlib-users" rel="noreferrer" target="_blank">https://mail.python.org/mailman/listinfo/matplotlib-users</a><br>
</blockquote></div>