Re: [Matplotlib-users] imshow memory problem

2010-05-18 Thread Tomáš Faragó
Thanks for replying Mike, I tried it on Linux as well but I ran into the same problem. Perhaps it has something to do with other needed libraries (GTK+, etc.). Can you please tell me your libraries versions? I mean GTK+, pygtk, etc. Also output produced by --verbose-helpful could be useful.

Re: [Matplotlib-users] py2exe and matplotlib errors when executing exe

2010-05-18 Thread New2Python
Thanks, must have skipped over that one - I added the statements and it has fixed it :) however now there is an issue elsewhere. I get the message File matplotlib\backends\__init__.pyo, line 25, in pylab_setup ImportError: No module named backend_tkagg and the traceback call this from pylab

[Matplotlib-users] draw coastlines without lakes

2010-05-18 Thread Richard Hofmeister
Hi, I wanted to plot a coastline of Scandinavia with basemap in intermediate resolution without lakes. The method i found was to draw the coastlines with the plot command using the coastline polygons from the projection. (see example below, the lakes are filled with a slightly darker gray for

[Matplotlib-users] hist question...

2010-05-18 Thread Nick Schurch
Hi all, Is there anyway of re-ploting the distribution generated by hist at a later point? I want to call it in a subroutine and have the resulting distributions returned so I can plot them without having to recalculate them each time. I couldn't find anything int he online documentation but I

Re: [Matplotlib-users] matplotlib font in cairo

2010-05-18 Thread Michael Droettboom
We went through this a few years ago on the Cairo mailing list. The short answer is you need to copy the fonts from mpl-data to C:\Windows\Fonts to correctly use Cairo. The long answer: Cairo uses fontconfig for font lookup, which by default searches the system font directory

Re: [Matplotlib-users] crop white space of image

2010-05-18 Thread Ryan May
On Mon, May 17, 2010 at 6:07 AM, Ruben Moor ruben.m...@gmail.com wrote: Hello, I plot views of 3D data without axis. The plotting results usually in plenty of surrounding white space. Is there an easy way to get rid of it (easy meaning without having to keep track of the spacial extension of

Re: [Matplotlib-users] py2exe and matplotlib errors when executing exe

2010-05-18 Thread Michael Droettboom
It should only try to import that backend when configured to do so. You may need to change your matplotlibrc to point to your desired backend. Mike New2Python wrote: Thanks, must have skipped over that one - I added the statements and it has fixed it :) however now there is an issue

Re: [Matplotlib-users] align title of subplot with ylabel

2010-05-18 Thread Ryan May
On Mon, May 17, 2010 at 10:08 AM, hettling hettl...@few.vu.nl wrote: Dear all, I'm struggling with the following problem plotting my data: I have a figure with two panels next to each other, which I want to label 'A' and 'B'. I want to left-justify my panel labels, but not to the box that

Re: [Matplotlib-users] imshow memory problem

2010-05-18 Thread Tomáš Faragó
I am using pmap -pid on Linux and Task manager on Windows. Memory usage is comparable on both operating systems so I think the memory consumption information is accurate. Pôvodná správa Od: Michael Droettboom md...@stsci.edu Predmet: Re: [Matplotlib-users] imshow

Re: [Matplotlib-users] align title of subplot with ylabel

2010-05-18 Thread Jae-Joon Lee
This can be done relatively easily with the current svn version of matplotlib (r8319). Below is the modified version of your code. See http://matplotlib.sourceforge.net/trunk-docs/users/annotations_guide.html#using-complex-coordinate-with-annotation for how the annotation works. While this is

Re: [Matplotlib-users] How to remove an element from a graph?

2010-05-18 Thread Jae-Joon Lee
On Sun, May 16, 2010 at 3:19 PM, Philipp K. Janert pyt...@beyondcode.org wrote: Is this the best way to do this, or is there another way (or one that does not require an explicit draw()?). Also, Any change in your figure is realized when you draw() the figure. So there is no way that does not

Re: [Matplotlib-users] How to remove an element from a graph?

2010-05-18 Thread John Hunter
On Tue, May 18, 2010 at 12:58 PM, Jae-Joon Lee lee.j.j...@gmail.com wrote: All the artists that are drawn are kept in the figure instance, so you can inspect the figure instance. And you may use findobj for that if you want. On the other hand, Axes.texts keeps a list of text instances in the

Re: [Matplotlib-users] How to remove an element from a graph?

2010-05-18 Thread Philipp K. Janert
Thanks. On Tuesday 18 May 2010 12:13:27 pm John Hunter wrote: On Tue, May 18, 2010 at 12:58 PM, Jae-Joon Lee lee.j.j...@gmail.com wrote: All the artists that are drawn are kept in the figure instance, so you can inspect the figure instance. And you may use findobj for that if you want.

Re: [Matplotlib-users] is it possible to continue to Debug when figure is created??

2010-05-18 Thread Alan G Isaac
First of all, what are you trying to do? What does figure is created mean. Do you need it to be drawn on the monitor? Why not save your figure(s) to file(s)? Cheers, Alan --

Re: [Matplotlib-users] hist question...

2010-05-18 Thread PHobson
Nick, Check out this demo on the MPL website: http://matplotlib.sourceforge.net/examples/api/histogram_demo.html This line in particular: n, bins, patches = ax.hist(x, 50, normed=...) The variables 'n' and 'bins' can be fed into ax.bar() later on. I could swear that this was clear from the

Re: [Matplotlib-users] [Gnuplot-py-users] is it possible to continue to Debug when figure is created??

2010-05-18 Thread Alan G Isaac
http://matplotlib.sourceforge.net/faq/howto_faq.html#use-show Here is some more detail, that I actually think should be added to the above link. http://stackoverflow.com/questions/458209/is-there-a-way-to-detach-matplotlib-plots-so-that-the-computation-can-continue hth, Alan Isaac

Re: [Matplotlib-users] py2exe and matplotlib errors when executing exe

2010-05-18 Thread New2Python
Thanks, I changed the matplotlibrc file to use the WXAgg backend and then had to copy the file into the mpl.get_configdir() and in my local working dir for it to work. The file runs however a python error screen pops up and then closes without giving me the chance to read it, anybody know how to