[Matplotlib-users] Ticks at fixed locations with uneven interval
ben.v.root at gmail.com
Wed Sep 13 16:58:04 EDT 2017
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.
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.
> 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
>> uneven. Is it possible to do it in matplotlib.
>> Sent from: http://matplotlib.1069221.n5.nabble.com/matplotlib-users-f3.
>> Matplotlib-users mailing list
>> Matplotlib-users at python.org
> Matplotlib-users mailing list
> Matplotlib-users at python.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Matplotlib-users