[Matplotlib-users] [timer] How it works?

2011-11-29 Thread Fabien Lafont
Hello everyone, I don't understand how works TimerBase. From matplotlib import backend_bases def write(x): print x backend_bases.TimerBase._timer_start backend_bases.TimerBase(1000,write(2)) It returns only 2 one time. Why it doesn't return 2 every second? Thx in advance,

Re: [Matplotlib-users] [timer] How it works?

2011-11-29 Thread Ryan May
On Tue, Nov 29, 2011 at 4:16 AM, Fabien Lafont lafont.fab...@gmail.com wrote: Hello everyone, I don't understand how works TimerBase. From matplotlib import backend_bases def write(x):     print x backend_bases.TimerBase._timer_start backend_bases.TimerBase(1000,write(2)) TimerBase

[Matplotlib-users] stretch x-axis

2011-11-29 Thread Neil Berg
Hello all, I am struggling to improve the layout of these subplots. You can see that the x tick labels on the left subplot are crunched. I simply want to stretch the x axis a bit in order to spread out the x ticks. Do you have any suggestions? Thanks! Neil - Here is my code:

[Matplotlib-users] plot_date with multiple subplots

2011-11-29 Thread Ed Maurer
I have a short script to plot 20 years of river flow data. I can use the plot_date command to create a plot, using this snippet: f = figure() ax1 = f.add_subplot(111) ax1.plot_date(dates0,y1,'g', label='observed', xdate=True,visible=True) ax1.plot_date(dates1,y2,'r', label='simulated',

[Matplotlib-users] weird axis tickmark format

2011-11-29 Thread Nat Echols
I'm plotting values that cover a very small range with a relatively large base, e.g. 375.0001 375.00025 375.0002 ... In practice, the data series hovers at a single value for several hundred elements in a row, then fluctuates slightly. Initially matplotlib does what I expect, and the Y-axis

Re: [Matplotlib-users] weird axis tickmark format

2011-11-29 Thread Eric Firing
On 11/29/2011 01:29 PM, Nat Echols wrote: I'm plotting values that cover a very small range with a relatively large base, e.g. 375.0001 375.00025 375.0002 ... In practice, the data series hovers at a single value for several hundred elements in a row, then fluctuates slightly. Initially

Re: [Matplotlib-users] Relpos only works once when using FancyArrow for annotation

2011-11-29 Thread Jae-Joon Lee
On Mon, Nov 28, 2011 at 10:49 PM, Jae-Joon Lee lee.j.j...@gmail.com wrote: This is a bug. In the current implementation, annotate has a side-effect that modifies the arrowprops dictionary. For a future reference, this should now be fixed in the v1.1.x branch which also has been merged into the