Re: [Matplotlib-users] How to Change Axis Tick Mark Labels

2012-07-23 Thread Phil Elson
Ah, sorry, forgot to reply to all. Please see the solution I provided to Jon. -- Forwarded message -- Date: 22 July 2012 15:08 Subject: Re: [Matplotlib-users] How to Change Axis Tick Mark Labels Sounds like you want to use a FunctionFormatter rather than modifying the ticks

Re: [Matplotlib-users] How to Change Axis Tick Mark Labels

2012-07-23 Thread Mark Lawrence
On 23/07/2012 03:01, JonBL wrote: Using FuncFormatter with my conversion procedure has solved my problem. I did not use the Python datetime module to generate the tickmark labels as some of your examples suggested. Instead, my conversion procedure pulls the required formatted date string for

Re: [Matplotlib-users] How to Change Axis Tick Mark Labels

2012-07-22 Thread Benjamin Root
On Sat, Jul 21, 2012 at 10:27 PM, JonBL jc.bl...@bigpond.net.au wrote: I have a line plot where the x-axis values are numbers, with displayed tick mark values of 0, 100, 200 ... 500 - a total of 6 tick marks. These values represent the number of days since a certain date. I have a function

Re: [Matplotlib-users] How to Change Axis Tick Mark Labels

2012-07-22 Thread JonBL
Using FuncFormatter with my conversion procedure has solved my problem. I did not use the Python datetime module to generate the tickmark labels as some of your examples suggested. Instead, my conversion procedure pulls the required formatted date string for an x-axis ticklabel date serial number

[Matplotlib-users] How to Change Axis Tick Mark Labels

2012-07-21 Thread JonBL
I have a line plot where the x-axis values are numbers, with displayed tick mark values of 0, 100, 200 ... 500 - a total of 6 tick marks. These values represent the number of days since a certain date. I have a function which converts a number such as 100, to date string '23-Jun-11', which I want