Sorry, I am used to working from the axes objects, not from the pyplot interface. Most of the axes methods are available to pyplot, but it looks like Axes.set_xticklabels() is not available to pyplot.
But honestly, I think you are making this harder than it is. The line being drawn starts at (0, 0) coordinates. The plot is correct, and I am not sure what you are trying to acheive.
On Sat, Sep 17, 2011 at 3:33 PM, Klonuo Umom <klonuo@…287…> wrote:
Hm… it not within matplotlib.pyplot module… needs more digging
On Sat, Sep 17, 2011 at 10:27 PM, Benjamin Root <ben.root@…1304…> wrote:
On Sat, Sep 17, 2011 at 3:22 PM, Klonuo Umom <klonuo@…287…> wrote:
Thanks for your fast replies.
One more thing if possible: How can I tell xticks() to start at 0 (at x-axis start)
Maybe what you want is xtick_labels()? xticks() merely tells mpl where on the x-axis you want ticks to show up. xtick_labels() will tell mpl what to label each tick (but won’t change how many there are and where they are placed).