Re: [Matplotlib-users] Memory increasing while plotting in loop

2011-06-17 Thread Fabrice Silva
Le jeudi 16 juin 2011 à 07:47 -0700, Alain Francés a écrit : Hi Jakob, yes your solution works and is more elegant! See the code at the end of this message. However using the original code with the Agg backend instead of WXAgg also works fine, so there is probably a memory leakage problem

Re: [Matplotlib-users] Memory increasing while plotting in loop

2011-06-17 Thread Alain Francés
Hi, This way the code creates empty images, it needs indeed some update where you inserted the comment. However I'm not sure that the benefit in term of memory and speed will be important. A. PS: I slightly changed the code below since as Jakob noticed: since you just use one figure object and

Re: [Matplotlib-users] Memory increasing while plotting in loop

2011-06-17 Thread Fabrice Silva
Le vendredi 17 juin 2011 à 02:38 -0700, Alain Francés a écrit : Hi, This way the code creates empty images, it needs indeed some update where you inserted the comment. However I'm not sure that the benefit in term of memory and speed will be important. I would think it would avoid creating

Re: [Matplotlib-users] Memory increasing while plotting in loop

2011-06-17 Thread Fabrice Silva
Le vendredi 17 juin 2011 à 12:00 +0200, Fabrice Silva a écrit : Le vendredi 17 juin 2011 à 02:38 -0700, Alain Francés a écrit : Hi, This way the code creates empty images, it needs indeed some update where you inserted the comment. However I'm not sure that the benefit in term of

Re: [Matplotlib-users] Memory increasing while plotting in loop

2011-06-17 Thread Alain Francés
You can in fact remove the fig argument of the plot_density function as it is not used. The clf command removes the children of the figure so that it has to delete the axes and its children (amongst which is the AxesImage) and create new ones when you invoke imshow again. I simply removed

Re: [Matplotlib-users] Memory increasing while plotting in loop

2011-06-17 Thread Fabrice Silva
Le vendredi 17 juin 2011 à 03:49 -0700, Alain Francés a écrit : You can in fact remove the fig argument of the plot_density function as it is not used. The clf command removes the children of the figure so that it has to delete the axes and its children (amongst which is the AxesImage) and

[Matplotlib-users] Basemap river plotting

2011-06-17 Thread stefanie
Hello! I'm plotting the river danube and some other stuff around it. Is there an easy way to extract several rectangles around the river and plot this rectangles next to each other? My aim is to print the whole river on a paper. My idea is to cut a rectangle every 100km, turn it straight (but

[Matplotlib-users] creating a multi colored graph with respect to the values in y-axis

2011-06-17 Thread Ravi Kanth Vanapalli
Hi all, I am a beginner in python and matplotlib. I need to implement a graph with multiple colors in it. In a way, I have a function which varies with respect to time and amplitude. I have time on x-axis and amplitude on y-axis. Lets say the amplitude of the graph is divided into 4 ranges, say

[Matplotlib-users] boundaryNorm functionality for mapping based on values range and also occurance of external factors like flag

2011-06-17 Thread Ravi Kanth Vanapalli
Hi all, Just wanted to know how to go about when I have to do my color mapping not only with respect to range of values on y-axis but also based on some other conditions as well. i.e, say ( rangeon y-axis condtion1 condition2 ) where condition1 could be occurance of some event say, a flag1 is

[Matplotlib-users] How do I add stippling to a map?

2011-06-17 Thread Ivan Lima
Is there a way to add stippling or hash marks to areas on a geographical map? I have a mask of zeros and ones and I'd like the areas where mask = 1 to be stippled. I'm using basemap to create the global map. Thanks, -- Ivan Lima Woods Hole Oceanographic Institution, MCG MS #25 360 Woods Hole

Re: [Matplotlib-users] Memory increasing while plotting in loop

2011-06-17 Thread Alain Francés
By monitoring memory and time with the task manager it looks like there is no big difference. I'm aware that it should be monitored in a more rigourous way but I don't think it is really relevant since the main problem was solved using the Agg backend instead of the WXAgg that seems to have a

Re: [Matplotlib-users] Basemap river plotting

2011-06-17 Thread Goyo
2011/6/16 stefanie lue...@googlemail.com: Hello! I'm plotting the river danube and some other stuff around it. Is there an easy way to extract several rectangles around the river and plot this rectangles next to each other? My aim is to print the whole river on a paper. My idea is to cut a

Re: [Matplotlib-users] UNIX_import pyplot:_path.so: symbol _ZNSs4_Rep20_S_empty_rep_storageE:referenced symbol not found

2011-06-17 Thread gerard henry
hello, my message is related to this thread: http://sourceforge.net/mailarchive/message.php?msg_id=26923108 because i encountered the same problem, and found a workaround, hope this help: - i'm using solaris/opensolaris/solaris11express (the name is changing often...), say sunos5 - i compiled