[Matplotlib-users] redraw a figure

2010-01-24 Thread Pellegrini Eric
Hello everybody, I have a question concerning the redrawing of one/several figures. Say that I have the following (very) simple code: ion() f1 = figure(1) plot([1,2,3,4]) f2 = figure(2) plot([1,1,1,1]) and that I killed f1 and f2 figures by clicking on their respective right-top corner. Is th

[Matplotlib-users] Updating a plot

2009-04-10 Thread Pellegrini Eric
Hello everybody, I would like to create a plot from which I set the x data later. The method set_xdata works but the corresponding plot displays the initial x limits. Is it possible to update the plot automatically in order that the displayed plot has x limits corresponding to the newly set x d

[Matplotlib-users] Question about gridlines

2009-05-28 Thread Pellegrini Eric
Dear all, When writing: f = figure() ... gl = f.gca().get_xgridlines() I always get a list of gridlines independantly of the fact that they are actually drawn or not. Is there an attribute or a method that could inform me whether the gridlines are actually displayed or not ? I th

[Matplotlib-users] Redisplay a figure after it was closed

2010-07-11 Thread Pellegrini Eric
Hello everybody, My question is in the title ! Say that I have the following code: f = pylab.figure() f.plot([1,2,3,4,5]) pylab.show() and that, once I destroyed the figure by clicking on the top-right corner red button, I would like to redisplay it in the state it was just before I closed it

[Matplotlib-users] catching close figure event

2010-07-29 Thread Pellegrini Eric
Hello everybody, I would like to call a function when I close manually a window previously opened by a pylab.figure. I tried the following: f = pylab.figure() f.canvas.mpl_connect('close_event',my_function) but it fails because the 'close_event' is not recognized as a valid event (button_press

Re: [Matplotlib-users] catching close figure event

2010-07-29 Thread Pellegrini Eric
Hi Ben, I use the version 0.99.3. Eric --- En date de : Jeu 29.7.10, Benjamin Root a écrit : De: Benjamin Root Objet: Re: [Matplotlib-users] catching close figure event À: "Pellegrini Eric" Cc: matplotlib-users@lists.sourceforge.net Date: Jeudi 29 juillet 2010, 19h26 On Thu, Ju

Re: [Matplotlib-users] catching close figure event

2010-07-29 Thread Pellegrini Eric
: "Pellegrini Eric" Cc: "Benjamin Root" , matplotlib-users@lists.sourceforge.net Date: Jeudi 29 juillet 2010, 19h29 On Thu, Jul 29, 2010 at 12:26 PM, Benjamin Root wrote: On Thu, Jul 29, 2010 at 12:18 PM, Pellegrini Eric wrote: Hello everybody, I would like to call a function whe

[Matplotlib-users] Question about imshow and matshow

2007-03-15 Thread Pellegrini Eric
Hello everybody, when using matplotlib, any plot I create is displayed separately from my Tkinter application. Is there a direct way to embed the plot created by matplotlib in a widget such as a canvas using something like "create_image" or something else ? Currently, the only thing I managed

[Matplotlib-users] Problem to embed figure in Tk

2007-03-16 Thread Pellegrini Eric
Hi everybody, Would you have any idea how to embed a matshow (or imshow) object in a Tk application but with a given dimension ? Using FigureCanvasTkAgg embed a matshow object in my application but it takes the dimension of the matshow object not the dimension of the place where I would like to

[Matplotlib-users] Question about matshow

2007-03-19 Thread Pellegrini Eric
Hi, I have some problems to combine a matshow object with a canvas. Here is a little piece of code that illustrates my problem. It displays a matshow object when pressing a button. I would like to embed the matshow object into a canvas of a fixed dimension. The code I wrote does the opposite i

[Matplotlib-users] Memory leak with FigureCanvasTk

2007-03-20 Thread Pellegrini Eric
Hi, I have a problem of memory leak using the following code: from Tkinter import * from matplotlib.backends.backend_tkagg import FigureCanvasTkAgg import pylab def display(): mat = pylab.zer

[Matplotlib-users] Question about pylab.figure

2007-03-20 Thread Pellegrini Eric
Hi everybody, when repeating the following sequence: pylab.figure() pylab.close() the memory used increases like if something remained. Would you have any idea of what is going on ? How to solve this kind of memory leak ? thank you very much Eruc

[Matplotlib-users] Memory leak using matplotlib

2007-04-03 Thread Pellegrini Eric
Hi evebrybody, I started a discussion one week ago about a problem of memory leak using the following code: from Tkinter import * from matplotlib.backends.backend_tkagg import FigureCanvasTkAgg impo

[Matplotlib-users] Problem with pylab.fill

2006-12-06 Thread Pellegrini Eric
Hi everybody, I would like to build an application where many filled polygons will have to be displayed on the screen. To do so, I would like to use matplotlib but, up to now, my application is not fast enough. I use: python 2.4.1 matplot-0.87.6 numpy-1.0rc1 and I checked my matplotlibrc file

[Matplotlib-users] RE : Re: Problem with pylab.fill

2006-12-07 Thread Pellegrini Eric
er <[EMAIL PROTECTED]> a écrit : >>>>> "Pellegrini" == Pellegrini Eric writes: Pellegrini> Hi everybody, I would like to build an application Pellegrini> where many filled polygons will have to be displayed Pellegrini> on the screen. To do so, I would lik

[Matplotlib-users] RE : Re: Problem with pylab.fill

2006-12-07 Thread Pellegrini Eric
a'] loaded ttfcache file C:\Documents and Settings\Eric\.matplotlib\ttffont.cache backend TkAgg version 8.4 " Thanks again Eric John Hunter <[EMAIL PROTECTED]> a écrit : >>>>> "Pellegrini" == Pellegr