Re: [Matplotlib-users] Memory usage

2011-01-13 Thread gary ruben
You're not doing this from ipython are you? It's cache hangs onto the plot object references and stops python's garbage collector from releasing them. If so, you can disable the cache as a workaround. A better option would be if ipython implemented an option to avoid caching references to matplotli

Re: [Matplotlib-users] colorbar with Axes3D for a set of collections?

2011-01-13 Thread Eric Firing
On 01/13/2011 01:40 PM, Daniel Mader wrote: > Hi, > > I am trying to plot a set of simulation results of FEM simulations. > With a lot of help from Ben I can plot the deformed shape quite nicely > but I have trouble in applying a colorbar to the plot. > > In the attached file there are three result

Re: [Matplotlib-users] sensible tick labels for log scale (rephrased)

2011-01-13 Thread Paul Ivanov
Chris Fonnesbeck, on 2011-01-13 14:07, wrote: > I was hoping (and still hope) that Matplotlib is able to choose > reasonable ticks on the log scale that do not overlap, but are > more informative than just powers of 10. Chris, Sorry, I'm no expert with the locators, I rarely find myself needing

[Matplotlib-users] colorbar with Axes3D for a set of collections?

2011-01-13 Thread Daniel Mader
Hi, I am trying to plot a set of simulation results of FEM simulations. With a lot of help from Ben I can plot the deformed shape quite nicely but I have trouble in applying a colorbar to the plot. In the attached file there are three results with different results. How can I apply a "global" co

[Matplotlib-users] sensible tick labels for log scale (rephrased)

2011-01-13 Thread Chris Fonnesbeck
Sorry for the lack of clarity in my last shot at this problem. What I want to be able to do is change a plot's axis to the log scale, then have some reasonable (i.e. evenly-spaced) tick labels generated automatically. I have tried to do this manually, but end up with the following: http://cl.ly

Re: [Matplotlib-users] Problem (bug?) with mpl_toolkits.mplot3d.Axes3D

2011-01-13 Thread Daniel Mader
Dear Ben, again, thanks for all your support! Still, I am unable to get the plot done. In your example, each set of elements gets a color where as I need each element to have its own color. I'll attach a file to demonstrate. Maybe you know how to get this done, and sorry that I am a bit slow on t

Re: [Matplotlib-users] sensible tick labels for log scale?

2011-01-13 Thread Chris Fonnesbeck
On Jan 12, 2011, at 10:33 PM, Paul Ivanov wrote: > In [50]: plt.loglog(1,1) > Out[50]: [] > > In [51]: ax = plt.gca() > > In [52]: loc = ax.xaxis.get_major_locator() > > In [53]: loc.numticks > Out[53]: 15 > > In [54]: loc.numticks = 10 Also, this approach does not seem to work in general for

Re: [Matplotlib-users] Font not carrying through Py2Exe

2011-01-13 Thread Michael Droettboom
On 01/13/2011 11:38 AM, Alex S wrote: > Hi there, > I've made a program that makes plots using New Century Schoolbook Lt Std > font. I did this by inserting this into the matplotlibrc file: > > font.family : New Century Schoolbook LT Std # serif #sans-serif > > There's also a "fontlist.ca

[Matplotlib-users] Font not carrying through Py2Exe

2011-01-13 Thread Alex S
Hi there, I've made a program that makes plots using New Century Schoolbook Lt Std font. I did this by inserting this into the matplotlibrc file: font.family : New Century Schoolbook LT Std # serif #sans-serif There's also a "fontlist.cache" file that I think points to it when it says:

Re: [Matplotlib-users] Memory usage

2011-01-13 Thread Benjamin Root
On Thu, Jan 13, 2011 at 7:54 AM, CASOLI Jules wrote: > Hello to all, > > This is yet another question about matplotlib not freeing memory, when > closing a figure (using close()). > Here is what I'm doing (tried with several backends, on MacOSX and Linux, > with similar results): > --

[Matplotlib-users] Memory usage

2011-01-13 Thread CASOLI Jules
Hello to all, This is yet another question about matplotlib not freeing memory, when closing a figure (using close()). Here is what I'm doing (tried with several backends, on MacOSX and Linux, with similar results): import matplotlib as mpl from matplotlib import pylot as pl

Re: [Matplotlib-users] Problem with matplotlib 1.0.1 and psfrag (LaTeX)

2011-01-13 Thread Michael Droettboom
The change in behavior was to fix this bug: http://sourceforge.net/tracker/?func=detail&aid=3062773&group_id=80706&atid=560720 It seems it may be impossible to produce Postscript that works across all fonts and all readers at the same time. Can you provide a simple LaTeX document that illustr

Re: [Matplotlib-users] setting arial bold font

2011-01-13 Thread Michael Droettboom
Do you have Arial installed? (I see you are on Linux, so it's unlikely to have been installed by default -- that font is shipped with Windows and copyright Microsoft). If it is installed, you may need to clear your matplotlib font cache in ~/.matplotlib/fontList.cache. Mike On 01/13/2011 05

[Matplotlib-users] setting arial bold font

2011-01-13 Thread Bala subramanian
Friends, The journal in which i am planning to send my paper says that the figure and panel labels should be in 'ARIAL' bold. When i try to set the font as arial, i get a warning message. Someone kindly let me know what is the appropriate setting to get the font arial bold. /usr/lib/python2.5/sit

Re: [Matplotlib-users] Bug in boxplot/mlab.prctile

2011-01-13 Thread Jochen Deibele
Hi! > I noticed that the boxplot function incorrectly calculates the > location of the median line in each box. As a simple example, > plotting > the dataset [1, 2, 3, 4] incorrectly plots the median line at 3. I can confirm this. > [..] > I would suggest that mlab.prctile be fixed to conf

Re: [Matplotlib-users] Hidding plots

2011-01-13 Thread Paul Ivanov
Salvador Benimeli, on 2011-01-13 10:10, wrote: > I would like to known if it is possible to hide a plot from a graph. > > For example, I have the following python code: > > for i in range(0,len(self.data): > .. > c = np.array(s[i]) > self.axes.plot_date(t[i],c,self.colors[i]

[Matplotlib-users] Hidding plots

2011-01-13 Thread Salvador Benimeli
Hello, I would like to known if it is possible to hide a plot from a graph. For example, I have the following python code: for i in range(0,len(self.data): .. c = np.array(s[i]) self.axes.plot_date(t[i],c,self.colors[i],label=self.labels[i]) . currently this code