Re: [Matplotlib-users] xlim and xticks

2010-01-14 Thread Matthias Michler
Hi Pierre, I'm not sure I understand correctly - maybe you could provide a small stand-alone example which illustrates your problem. For me the following works fine: ax = axes() ax.bar(arange(10), np.random.uniform(size=10)) xticks(0.5+arange(10), ["$a_%i$" % (i) for i in arange(10)]) xlim(xmax

[Matplotlib-users] xlim and xticks

2010-01-14 Thread Pierre-Yves
Dear all, I am facing a small problem with xlim and xticks and nor google nor the api helped me (one of the reason being that I likely don't know the exact term I am looking for). I am plotting a barplot using pyplot and bar() on matplotlib 0.98.5.2. If I do not use xticks the x axis goes from 0