Re: [Matplotlib-users] draw after set_data

2010-09-09 Thread Philippe Crave
updated. I mean, visually. 2010/9/8 Philippe Crave philippe.cr...@gmail.com: -- Forwarded message -- From: Eric Firing efir...@hawaii.edu Date: 2010/9/8 Subject: Re: [Matplotlib-users] draw after set_data To: matplotlib-users@lists.sourceforge.net On 09/07/2010 07:33 PM

Re: [Matplotlib-users] draw after set_data

2010-09-07 Thread Philippe Crave
hi, sorry to bring this up again. style haven't found how to draw my plot faster than self.fig.canvas.draw(), after a set_data() thanks 2010/9/1 Philippe Crave philippe.cr...@gmail.com: Hi, I use qt4 backend. I update some lines doing something like that:   def draw_curves(self, datas, x

[Matplotlib-users] draw after set_data

2010-09-01 Thread Philippe Crave
Hi, I use qt4 backend. I update some lines doing something like that: def draw_curves(self, datas, x): for y in datas: self.lines[i].set_data(x, y) min_y, max_y = self.min_max(y) self.ax[i].axis((0, x[-1], min_y, max_y))

Re: [Matplotlib-users] how to remove a part of the legend ?

2010-07-01 Thread Philippe Crave
perfect! was really simple, but I did not think about it. thanks for your help! 2010/7/1 Matthias Michler matthiasmich...@gmx.net: On Wednesday, June 30, 2010 06:24:12 pm Philippe Crave wrote: Hello, I have a subplot with 4 lines. I display the legend. I can remove a line easily

[Matplotlib-users] how to remove a part of the legend ?

2010-06-30 Thread Philippe Crave
Hello, I have a subplot with 4 lines. I display the legend. I can remove a line easily with something like del(self.ax.lines[n]). But how can I remove the line in the legend ? I found that I can remove all the lines, add news ones, but all the lines (new and deleted) remain in the legend.

Re: [Matplotlib-users] toolbar

2010-03-21 Thread Philippe Crave
without the svn version, you can save both files. edit figureoptions.py to modify the import: #import matplotlib.backends.qt4_editor.formlayout as formlayout import formlayout then, you can attach the nice dialog box to a Event, something like that works: import matplotlib.pyplot as plt import

[Matplotlib-users] toolbar

2010-03-18 Thread Philippe Crave
Hello, the following will display a figure with a plot. the figure will embed the classic toolbar. import matplotlib.pyplot as plt import numpy as np x=np.arange(0, 1, 0.1) fig = plt.figure() ax = fig.add_subplot(111) ax.plot(x) plt.show() from there, is it possible to add new buttons to the