Ticks at fixed locations with uneven interval

I would like to keep ticks at locations evenly spaced but keep their values
uneven. Is it possible to do it in matplotlib.

···

--
Sent from: http://matplotlib.1069221.n5.nabble.com/matplotlib-users-f3.html

You could do this as categorical (string) variables.

Otherwise you might need to write your own scale.
-Paul

···

On Sun, Sep 10, 2017 at 12:20 AM, erzdemir <erdal2052 at gmail.com> wrote:

I would like to keep ticks at locations evenly spaced but keep their values
uneven. Is it possible to do it in matplotlib.

--
Sent from: http://matplotlib.1069221.n5.nabble.com/matplotlib-users-
f3.html
_______________________________________________
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/20170910/1f8e3f99/attachment.html>

The tick labels and the tick locations are two separate things (but often
conflated). By default, the tick label is the string representation of its
location, but it doesn't have to be that. You can call
`ax.set_xticklabels(['1', '20', '-5', 'foo'])`, assuming you know the
number of ticks that will appear.

Cheers!
Ben Root

···

On Sun, Sep 10, 2017 at 11:38 AM, Paul Hobson <pmhobson at gmail.com> wrote:

You could do this as categorical (string) variables.

Otherwise you might need to write your own scale.
-Paul

On Sun, Sep 10, 2017 at 12:20 AM, erzdemir <erdal2052 at gmail.com> wrote:

I would like to keep ticks at locations evenly spaced but keep their
values
uneven. Is it possible to do it in matplotlib.

--
Sent from: http://matplotlib.1069221.n5.nabble.com/matplotlib-users-f3.
html
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users at python.org
https://mail.python.org/mailman/listinfo/matplotlib-users

_______________________________________________
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/20170913/366eca17/attachment.html>