[Matplotlib-users] Inverting a datetime / plot_date y-axis

2014-09-16 Thread Gerd Wellenreuther
Dear all, I hope some of you could help me out. I am currently trying to generate some timetables using matplotlib.pyplot.plot_date, having the time-axis on the y-axis. Typically, one would like to read these plots from top to bottom, from older to newer items (future on the bottom).

Re: [Matplotlib-users] Inverting a datetime / plot_date y-axis

2014-09-16 Thread Joe Kington
A quick way to do this is ``ax.invert_yaxis()`` (and invert_xaxis() for the x-axis). That way you preserve auto-scaling and don't wind up with manually set axis limits. What you did should have worked, but ``ymin`` and ``ymax`` are probably datetime objects. ``ylim`` isn't smart enough to

Re: [Matplotlib-users] Inverting a datetime / plot_date y-axis

2014-09-16 Thread Benjamin Root
I would still consider this to be a bug, though. Gerd, could you please file a bug report? Cheers! Ben Root On Tue, Sep 16, 2014 at 7:45 AM, Joe Kington joferking...@gmail.com wrote: A quick way to do this is ``ax.invert_yaxis()`` (and invert_xaxis() for the x-axis). That way you preserve