Re: [Matplotlib-users] My Legend keeps growing! Help

2010-08-26 Thread John Hunter
On Wed, Aug 25, 2010 at 10:47 PM, dcarroll wrote: > > I am trying make a plot that is in a loop and replots when new data is > updated. > > #IN A LOOP > >    fig = plt.figure(1,[10,10]) >    fig.clf It looks like the problem is that you are not clearing your figure. clf is a function, so you need

Re: [Matplotlib-users] My Legend keeps growing! Help

2010-08-26 Thread Ryan May
On Thu, Aug 26, 2010 at 8:23 AM, Tinne De Laet wrote: > On Thu, Aug 26, 2010 at 05:47, dcarroll wrote: >> >> I am trying make a plot that is in a loop and replots when new data is >> updated. >> >> #IN A LOOP >> >>    fig = plt.figure(1,[10,10]) >>    fig.clf >> >>    prop = matplotlib.font_manag

Re: [Matplotlib-users] My Legend keeps growing! Help

2010-08-26 Thread Tinne De Laet
Hi , On Thu, Aug 26, 2010 at 05:47, dcarroll wrote: > > I am trying make a plot that is in a loop and replots when new data is > updated. > > #IN A LOOP > >    fig = plt.figure(1,[10,10]) >    fig.clf > >    prop = matplotlib.font_manager.FontProperties(size=8) > >    xMin = dates[1] >    xMax =

[Matplotlib-users] My Legend keeps growing! Help

2010-08-26 Thread dcarroll
I am trying make a plot that is in a loop and replots when new data is updated. #IN A LOOP fig = plt.figure(1,[10,10]) fig.clf prop = matplotlib.font_manager.FontProperties(size=8) xMin = dates[1] xMax = dates[-1] #temperature plot yMin = min(temperatureSQLD