Re: [Matplotlib-users] Trouble embedding toolbar in Tk using grid

2010-03-23 Thread Jonno
Well I realized my error with the extra window being caused by the TopLevel() command. I switched this to Tk.Tk() and it works nicely. However I still have to pack the frame instead of using grid. I can work around this but I wonder if there isn't something else I'm missing. On Tue, Mar 23, 2010 a

Re: [Matplotlib-users] matplotlib to draw streamlines?

2010-03-23 Thread Jeff Whitaker
On 3/23/10 5:33 PM, Reckoner wrote: > Is it possible to draw a streamlines plot as shown in the following: > > http://www.pyngl.ucar.edu/Examples/Images/ngl04p.0.png > > using matplotlib or basemap? > > Thanks in advance! > > > Sorry, no. -Jeff ---

[Matplotlib-users] matplotlib to draw streamlines?

2010-03-23 Thread Reckoner
Is it possible to draw a streamlines plot as shown in the following: http://www.pyngl.ucar.edu/Examples/Images/ngl04p.0.png using matplotlib or basemap? Thanks in advance! -- Download Intel® Parallel Studio Eval Try the

[Matplotlib-users] Trouble embedding toolbar in Tk using grid

2010-03-23 Thread Jonno
I've been trying to modify the embedding_in_tk.py example to use the grid manager instead of pack. I can get the plot to show ok but I can't seem to get the toolbar to show correctly. The following code does get the toolbar on there but it does use pack for the frame and also I always end up with a

Re: [Matplotlib-users] basemap and py2exe

2010-03-23 Thread Yagua Rovi
> > 2010/3/22 Friedrich Romstedt : >> I'm not shure whether the following suggestion solves your problem, >> but it would simplify your script anyway. >> >> import matplotlib >> ... >> setup(..., data_files = matplotlib.get_py2exe_datafiles()) >> >> And maybe don't forget to exclude 'libgdk_pixbuf-

[Matplotlib-users] Matplotlib sphinx extension crashes Python

2010-03-23 Thread Fredrik Johansson
Hi, I'm having trouble getting the sphinx matplotlib extensions to work. After adding "'matplotlib.sphinxext.plot_directive'" to the extension list for my documentation project, when running the sphinx build script, Python immediately crashes ("python.exe has encountered a problem and needs to clo

Re: [Matplotlib-users] Problem saving a plot in OSX

2010-03-23 Thread Gael Varoquaux
On Tue, Mar 23, 2010 at 09:58:11AM -0700, Christopher Barker wrote: > You also might try a different back-end. I'm not sure what EPD sets as > the default but there are sometimes odd Tk issues. EPD should support > wxPython (wxAgg), and maybe the macosx back-end. I believe EPD's default is wxAgg

Re: [Matplotlib-users] basemap and py2exe

2010-03-23 Thread Christopher Barker
Yagua Rovi wrote: > I identify the problem. > There is no basemap data directory and the app search those datas in > [MY_DIR]\dist\library.zip\mpl_toolkits\basemap\data > > But I don't know how to add it at the compilation You can add those to "data_files", or you may need to copy them with

Re: [Matplotlib-users] Problem saving a plot in OSX

2010-03-23 Thread Christopher Barker
>> I am using the enthought distribution, I would hope that it was done >> right but maybe not. Then it may be an EPD bug, you might as on the EPD list. > As a possible temporary "fix", when I had this problem, I was able to > copy and paste the name of a file into the OSX save box from another

Re: [Matplotlib-users] Why the name Axes?

2010-03-23 Thread Christopher Barker
David Carmean wrote: > How was the name Axes chosen for the Axes component? :) Much of the MPL API was modeled after the Matlab API, so you may have to ask Mathworks. However: an "axis" is a single thing -- "the x axis". "axes" is the plural of axis, so when you have a thing with both an x and

Re: [Matplotlib-users] Overlapping labels in pie charts

2010-03-23 Thread Jae-Joon Lee
This should be doable using the annotation. Here is a simple cook-up I just did. it uses a naive algorithm to place the labels, but I guess it gives you an idea how things work. a screenshot is attached. Regards, -JJ from pylab import * # make a square figure and axes figure(1, figsize=(6,6))

Re: [Matplotlib-users] Sharing axes on multiple subplots

2010-03-23 Thread Gökhan Sever
Yes, that makes it work. Thank you JJ. On Tue, Mar 23, 2010 at 10:58 AM, Jae-Joon Lee wrote: > In the current implementation, sharing the axis does not mean sharing its > scale. > This is not a subplots-specific issue, but applies to all kind of axes > sharing. > > So you need to change the sca

Re: [Matplotlib-users] the problem in pylab_examples example code: image_demo2.py

2010-03-23 Thread Jae-Joon Lee
The example assumes that the file is a dump of uin16 512x512 array. So, no doubt that it won't work with a png file. See http://matplotlib.sourceforge.net/users/image_tutorial.html -JJ On Tue, Mar 23, 2010 at 9:41 AM, yogesh karpate wrote: > The 1st code snippet of image_demo2.py is as follow

[Matplotlib-users] Why the name Axes?

2010-03-23 Thread David Carmean
How was the name Axes chosen for the Axes component? :) It did confuse me for at least two days while I was first learning mpl. It's in my thoughts again as I'm writing some wrapper classes for it; what were the alternatives considered, even after the fact? :)

Re: [Matplotlib-users] 3d pie charts

2010-03-23 Thread Jae-Joon Lee
You need to define your own path (or you may combine a wedge and rectangles). This may be helpful. http://matplotlib.sourceforge.net/users/path_tutorial.html Regards, -JJ On Sat, Mar 20, 2010 at 2:33 PM, Gary Jaffe wrote: > Hi all -- > > I'm new to Matplotlib, and it looks like a great proje

Re: [Matplotlib-users] Sharing axes on multiple subplots

2010-03-23 Thread Jae-Joon Lee
In the current implementation, sharing the axis does not mean sharing its scale. This is not a subplots-specific issue, but applies to all kind of axes sharing. So you need to change the scale of all the axes even though they have shared axis. What seems to be a better approach to me is to initial

[Matplotlib-users] Overlapping labels in pie charts

2010-03-23 Thread Rune V . Sjøen
Hello, I am having some issues generating pie charts, when some of the slices become very small, their labels will draw on top of each other, making it impossible to distinguish between them. And I am trying to avoid using a legend. Does anyone know if there is a way to properly position labels o

[Matplotlib-users] the problem in pylab_examples example code: image_demo2.py

2010-03-23 Thread yogesh karpate
The 1st code snippet of image_demo2.py is as follows #!/usr/bin/env python from pylab import * w, h = 512, 512 s = file('../data/ct.raw', 'rb').read() A = fromstring(s, uint16).astype(float) A *= 1.0/max(A) A.shape = w, h I replaced s = file('../data/ct.raw', 'rb').read() with s = file('/home/j

Re: [Matplotlib-users] cxfreeze

2010-03-23 Thread Peter Bloomfield
I managed to resolve it, by following Mike's hint thanks Mike. It was simply to change the setup.py script to import cx_Freeze import sys import matplotlib base = None if sys.platform == "win32": base = "Win32GUI" executables = [