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

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

[Matplotlib-users] catching close figure event

2010-07-29 Thread Pellegrini Eric
zed as a valid event (button_press_event, axis_leave_event ...). Would you have any idea ? thank you very much regards Eric Pellegrini -- The Palm PDK Hot Apps Program offers developers who use the Plug-In Development Ki

[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] 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] Question about gridlines

2009-05-28 Thread pellegrini
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 thougt that th

[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] Updating a plot

2009-04-10 Thread Pellegrini Eric
data ? Here is the script that fails: import pylab fig = pylab.figure() ax = fig.add_subplot(111, label = 'plot1') p, = ax.plot([1,2,3,4,5]) p.set_xdata([10,20,30,40,50]) # ax.set_xlim([10,50]) fig.show() to update the xlim I have to add the commented line. thank you very much Eric

[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] 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 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 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] Problem to embed figure in Tk

2007-03-16 Thread Pellegrini Eric
to embed it. Thank you very much Best regards Eric Pellegrini - Découvrez une nouvelle façon d'obtenir des réponses à toutes vos questions ! Profitez des connaissances, des opinions et des expériences des internautes sur Yahoo! Ques

[Matplotlib-users] Question about imshow and matshow

2007-03-15 Thread Pellegrini Eric
I managed to do is: -create my plot with matshow -save the figure using savefig (png) -embed the png in a canvas using create_image not very smart, isn't it ? Thank you very much best regards Eric Pellegrini - Découvrez une nouvelle faço

[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

[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] 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