Several backends will show you the x and y float values that
correspond to the current cursor position in a plot() but are there
backends that show the _datetime_ corresponding to the x position if
the plotted data is a time series (e.g. a pandas.Series object with a
DatetimeIndex)?
Regards,
Will
Will,
You can use the `format_coord` method of the axes objects to do just this.
-paul
···
On Mon, Mar 4, 2013 at 11:23 AM, William Furnass <will@...4073...>wrote:
Several backends will show you the x and y float values that
correspond to the current cursor position in a plot() but are there
backends that show the _datetime_ corresponding to the x position if
the plotted data is a time series (e.g. a pandas.Series object with a
DatetimeIndex)?
Regards,
Will
Sounds like a nice feature if it doesn’t already exist. At first glance, I’d say this was a good candidate for the “low-hanging fruit” label (https://github.com/matplotlib/matplotlib/issues?labels=low+hanging+fruit&page=1&state=open) for which we have tickets which have a low matplotlib contribution experience barrier and a relatively good return on investment (in terms of time spent).
Please feel free to create an issue on the github tracker & if you’re keen, I’d encourage you to have a go at implementing it.
Cheers,
···
On 4 March 2013 19:34, Paul Hobson <pmhobson@…287…> wrote:
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_feb
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users
On Mon, Mar 4, 2013 at 11:23 AM, William Furnass <will@…83…4073…> wrote:
Several backends will show you the x and y float values that
correspond to the current cursor position in a plot() but are there
backends that show the datetime corresponding to the x position if
the plotted data is a time series (e.g. a pandas.Series object with a
DatetimeIndex)?
Regards,
Will
Will,
You can use the format_coord
method of the axes objects to do just this.
-paul