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

2014-09-16 Thread Gerd Wellenreuther
Just posted some small code under https://github.com/matplotlib/matplotlib/issues/3522 I guess the formatting is not up to standards, but I did not find another way to attach the code... Cheers, Gerd On 16.09.2014 15:29, Benjamin Root wrote: Perhaps something is odd with the date values you

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

2014-09-16 Thread Benjamin Root
Perhaps something is odd with the date values you have? Can you make an SSCCE (sscce.org)that demonstrates the problem? There is definitely some sort of bug at play here. Cheers! Ben Root On Tue, Sep 16, 2014 at 9:20 AM, Gerd Wellenreuther < gerd.wellenreut...@xfel.eu> wrote: > Tried this befor

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

2014-09-16 Thread Gerd Wellenreuther
Tried this before, I think, here is the traceback (it is kind of different) - maybe it tells some of you where to look at IF this should really be a bug: Traceback (most recent call last): File "C:\Users\gwellenr\Desktop\Test_Sabine\Plot_csv.py", line 187, in matplotlib.pyplot.savefig

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 wrote: > 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

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 conve

[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). Unfortunat