[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

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

2014-09-16 Thread Gerd Wellenreuther
(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 convert them to the datetime units that ma

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

2014-09-16 Thread Gerd Wellenreuther
have? Can you make an SSCCE (sscce.org <http://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 mailto:gerd.wellenreut...@xfel.eu>> wrote: Tried this before, I th

Re: [Matplotlib-users] Memory issues with imshow

2009-12-15 Thread Gerd Wellenreuther
Perry Greenfield schrieb: > if the above code is in a loop, and there is no figure clearing in the > loop, then > > rotated_images[i] = [] > gc.collect(2) > > will have no effect since matplotlib will still have references to the > array (and generally, you never need to call gc.collect by the