x-label location not at xtick location?

Hi,

another question. Given the plot from my last email (I attached the code
to this one as well), I would like to have the x-labels ("J", "F", ...)
not at the location of the xticks, but centered in between to xticks. I
would then move the xticks so that they form the bins to the data chunks,
and the labels should be where the current xticks are.

Any suggestions are again extremely welcome :slight_smile:

Cheers, Andreas.

xtick-location.py (1.08 KB)

This was on the first page of a google search:
http://www.mail-archive.com/matplotlib-users@lists.sourceforge.net/msg00607.html

Hope this helps.

Best,
Damon

···

On Fri, Oct 12, 2012 at 10:55 AM, Andreas Hilboll <lists@...3067...> wrote:

Hi,

another question. Given the plot from my last email (I attached the code
to this one as well), I would like to have the x-labels ("J", "F", ...)
not at the location of the xticks, but centered in between to xticks. I
would then move the xticks so that they form the bins to the data chunks,
and the labels should be where the current xticks are.

Any suggestions are again extremely welcome :slight_smile:

Cheers, Andreas.

--
Damon McDougall
http://www.damon-is-a-geek.com
B2.39
Mathematics Institute
University of Warwick
Coventry
West Midlands
CV4 7AL
United Kingdom