Re: [Matplotlib-users] removing lines from plot

2011-05-04 Thread butterw
redlines.set_visible(False) it is also possible to delete the line from ax.lines. Ex: del ax.lines[-1] deletes the last line. you need to perform a redraw for the change to be visible on the plot. Hi I've added some lines with ax.add_line(yellowlines) ax.add_line(redlines) how can I remove

Re: [Matplotlib-users] re cord array and date support

2011-04-26 Thread butterw
given a recarray r, r.dtype.names contains a tuple with the column names. It should be easy to do what you want using a loop. briant100 wrote: > > Hey John - currently using matplotlib.mlab import csv2rec functionality in > a script. > > Is there a tool or way to automate plotting of multiple

[Matplotlib-users] Saving figure for later editing

2011-04-26 Thread butterw
I believe this feature, which has been requested a number of times, but is still missing from matplotlib is genuinely useful for interactive plotting. Moreover, I've heard matlab has it... Here's a potential solution to cover my simple plotting needs. The goal is not to support all the weir

Re: [Matplotlib-users] Constrained zoom to x axis broken ?

2011-04-17 Thread butterw
:14pm :: Rate this Message: - Use ratings to moderate (?) Reply | Print | View Threaded | Show Only this Message On 04/17/2011 07:59 AM, Eric Firing wrote: On 04/16/2011 08:44 PM, butterw@... wrote: > > http://matplotlib.sourceforge.net/users/navigation_toolbar.html Constrained zoom to

[Matplotlib-users] Constrained zoom to x axis broken ?

2011-04-16 Thread butterw
> http://matplotlib.sourceforge.net/users/navigation_toolbar.html Constrained zoom to x axis (hold x key + left click zoom icon) is broken for me with master. Tested with TkAgg, Qt4Agg backend features was working on mpl 1.0.0 ---

Re: [Matplotlib-users] Qt4Agg backend - edit curves and axis parameters

2010-09-20 Thread butterw
bevan j wrote: > > Sorry if it has already been reported I searched in the bug reports for > qt4agg and didn't find anything. Although I may have been looking in the > wrong place. > I have also noticed that editing some parameters (or pressing apply > without any changes) alters others. For i

Re: [Matplotlib-users] pyplot toolbar

2010-09-17 Thread butterw
teq-2 wrote: > > > Has anyone ever added a print button to the pyplot toolbar? And in general > how is it possible to modify that toolbar instead of creating a new one? > > -Tim > > The actual toolbar is defined in the backend. It is not difficult to modify it. For the Qt4agg backend on w

Re: [Matplotlib-users] toolbar

2010-03-20 Thread butterw
I'm using the recent '0.99.3rc1' which does include the qt4_editor code. Should the new toolbar just appear when you open a plot or is specific code needed to call it ? Le , Gökhan Sever a écrit : On Sat, Mar 20, 2010 at 6:06 PM, butterw butt...@gmail.com> wrote: I

Re: [Matplotlib-users] toolbar

2010-03-20 Thread butterw
Is there an minimal example file available showing how to activate this new plot toolbar ? changing the backend to Qt4Agg apparently is not sufficient. Gökhan SEVER-2 wrote: > > Hi Pierre Raybaut a nice extension for what you are asking. You will need > to > use Qt4Agg backend to use it. The

Re: [Matplotlib-users] plotting histograms in percent

2009-10-18 Thread butterw
it would be nice to be able to plot histograms with bins labeled directly in percents, but it isn't supported by hist(). Workaround is to change either your data or your axis. http://sourceforge.net/tracker/?func=detail&aid=2775888&group_id=80706&atid=560723 Tracker: Feature Requests 5 hist plot

Re: [Matplotlib-users] Hiding data via legend

2009-09-27 Thread butterw
7;) # legend leg = ax.legend(loc='upper left', numpoints=2, fancybox=True, shadow=True) lines, labels = ax.get_legend_handles_labels() # Enable picking on the legend lines leglines=leg.get_lines() for legline in leglines: legline.set_picker(5) Jae-Joon Lee wrote: > > On Wed, Sep 23,

Re: [Matplotlib-users] Hiding data via legend

2009-09-23 Thread butterw
Hi, pickers work great to make matplotlib plots more interactive/general user friendly. On the subject of the legend_picker.py example, I was wondering if it was possible to combine both a legend picker and a line picker in the same plot. From what I gather they will both use the same onpick eve