[Matplotlib-users] more on cleanup pylab namespace

2009-06-12 Thread Sebastian Haase
Hi, long time ago there was a discussion on reducing the duplications of functions / symbols between Numpy and Matplotlib. I think from this resulted the pylab module now having many fewer entries: import matplotlib matplotlib.__version__ '0.98.5.2' import pylab len(pylab.__dict__) 882

Re: [Matplotlib-users] more on cleanup pylab namespace

2009-06-12 Thread Matthias Michler
Hi Sebastian, You are right. A large number of numpy functions is part of pylab, but I think this problem was solved by introducing matplotlib.pyplot, which holds all plotting functions of matplotlib. The module pylab imports these plotting functions and all the numpy-stuff in order to offer

[Matplotlib-users] Python 2.6.2 installation?

2009-06-12 Thread Virgil Stokes
I am rather new to matplotlib and would appreciate help on how I can install matplotlib with Python 2.6.2 on a Windows Vista platform. Thanks, :-) V. Stokes -- Crystal Reports - New Free Runtime and 30 Day Trial Check

Re: [Matplotlib-users] Newbie question

2009-06-12 Thread jorgesmbox-ml
- Mensaje original De: Eric Firing efir...@hawaii.edu import matplotlib.cbook as cbook def to_sequence(arg): if cbook.is_iterable(arg): return arg return [arg] Above is an example of how one can turn a scalar into a sequence (a list, in this case) if

Re: [Matplotlib-users] Python 2.6.2 installation?

2009-06-12 Thread John Hunter
On Fri, Jun 12, 2009 at 5:34 AM, Virgil Stokesv...@it.uu.se wrote: I am rather new to matplotlib and would appreciate help on how I can install matplotlib with Python 2.6.2 on a Windows Vista platform. The matplotlib installer is broken for python2.6 -- I have been working on fixing it, but it

Re: [Matplotlib-users] more on cleanup pylab namespace

2009-06-12 Thread John Hunter
On Fri, Jun 12, 2009 at 4:21 AM, Matthias Michlermatthiasmich...@gmx.net wrote: You are right. A large number of numpy functions is part of pylab, but I think this problem was solved by introducing matplotlib.pyplot, which holds all plotting functions of matplotlib. The module pylab imports

Re: [Matplotlib-users] more on cleanup pylab namespace

2009-06-12 Thread Sebastian Haase
On Fri, Jun 12, 2009 at 11:21 AM, Matthias Michlermatthiasmich...@gmx.net wrote: Hi Sebastian, You are right. A large number of numpy functions is part of pylab, but I think this problem was solved by introducing matplotlib.pyplot, which holds all plotting functions of matplotlib. The module

Re: [Matplotlib-users] more on cleanup pylab namespace

2009-06-12 Thread John Hunter
On Fri, Jun 12, 2009 at 6:10 AM, Sebastian Haaseseb.ha...@gmail.com wrote: On Fri, Jun 12, 2009 at 11:21 AM, Matthias Michlermatthiasmich...@gmx.net wrote: Hi Sebastian, You are right. A large number of numpy functions is part of pylab, but I think this problem was solved by introducing

Re: [Matplotlib-users] New contourf() drawing polygon boundaries for some reason?

2009-06-12 Thread Michael Droettboom
So you see this behavior if you switch to the Agg backend? That's the backend used to generate the images in the gallery. If there's a difference there, that would seem to suggest some tweaking of the macosx backend (which is still relatively new) is in order. Mike Zane Selvans wrote: I

Re: [Matplotlib-users] MPL with PyQt: different behavior on Windows vs. Linux

2009-06-12 Thread Darren Dale
On Tue, Jun 9, 2009 at 6:17 PM, Steve Nicholes emailaddress_...@yahoo.comwrote: Hi, I am writing some code for automated testing via GPIB using MPL and PyQt. To simulate automated data collection while debugging the program, I have added a for loop (see below) after reading in a data file

[Matplotlib-users] bug in PDFs

2009-06-12 Thread Michael Hearne
All: I am using PDF files generated from matplotlib, and a PDF parser from ReportLab, Inc. Their tool encountered a bug in the PDF specification. The company's email to me follows: ...matplotlib is violating the PDF specification. There is a structure near the end of the file shown

Re: [Matplotlib-users] MPL with PyQt: different behavior on Windows vs. Linux

2009-06-12 Thread John Hunter
On Wed, Jun 10, 2009 at 12:55 AM, Steve Nicholesemailaddress_...@yahoo.com wrote: Thanks John. I hope you aren't receiving this reply twice (my email kicked me out when I hit send). I actually am importing pylab so it isn't an entirely qt app. I didn't post all of the code originally b/c it

Re: [Matplotlib-users] bug in PDFs

2009-06-12 Thread Michael Droettboom
The description of 'n' vs 'f' below doesn't seem to align with what the spec says: that 'n' is for in-use objects and 'f' is for free objects. However, the spec does say: The first entry in the table (object number 0) is always free and has a generation number of 65,535; it is the head of the

Re: [Matplotlib-users] Python 2.6.2 installation?

2009-06-12 Thread Magnus Benjes
2009/6/12 Virgil Stokes v...@it.uu.se I am rather new to matplotlib and would appreciate help on how I can install matplotlib with Python 2.6.2 on a Windows Vista platform. You have to build it manually. Assumed you have Visual Studio 2008 installed: 1. install freetype

Re: [Matplotlib-users] more on cleanup pylab namespace

2009-06-12 Thread Matthias Michler
Hi Sebastian, Hi list, I'm not the one to decide this, but I think it is worth to try to remove matplotlib.mlab routines, if their numpy counterparts provide the same functionality or do I miss anything? After doing this one additionally could clean up the imports in pylab in order to have

Re: [Matplotlib-users] Quiver plot of a netcdf file

2009-06-12 Thread JPKay
The suggestion to install matplotlib.basemap seems to be the right direction to go. However, I have been unsuccessful in importing the file by this method. This is what I have been trying. from mpl_toolkits.basemap import Basemap import numpy as np import matplotlib.pyplot as plt import

[Matplotlib-users] half-filled markers

2009-06-12 Thread Eli Brosh
Hello, Is there a way to plot half-filled markers in matplotlib ? For example, I would like to use a circle marker, lower half filled in black while the upper half is white. Thanks, Eli -- Crystal Reports - New Free

Re: [Matplotlib-users] New contourf() drawing polygon boundaries for some reason?

2009-06-12 Thread Zane Selvans
Um, yeah. So my response got bounced because of the attachment. Take 2: For some reason my script bombed when I switched to the Agg backend, trying to display to the screen (it said Figure has no method show()) So I output the plot as both a PDF and a PNG (still having backend: agg in my

Re: [Matplotlib-users] Quiver plot of a netcdf file

2009-06-12 Thread Matthew Brett
Hi, On Fri, Jun 12, 2009 at 10:52 AM, JPKaykay1...@vandals.uidaho.edu wrote: from mpl_toolkits.basemap import Basemap You have not so far imported mpl_toolkits into the namespace, only Basemap. You could do: import mpl_toolkits.basemap as another import line, or: from mpl_toolkits.basemap

Re: [Matplotlib-users] New contourf() drawing polygon boundaries for some reason?

2009-06-12 Thread Michael Droettboom
Shot in the dark here, but what if you set the rcParam path.simplify to False? There have been recent changes to that code. Also, since the Agg backend doesn't have an associated GUI, you need to use the savefig() command and provide a filename, rather than using show(). Cheers, Mike Zane

Re: [Matplotlib-users] more on cleanup pylab namespace

2009-06-12 Thread Eric Firing
Matthias Michler wrote: Hi Sebastian, Hi list, I'm not the one to decide this, but I think it is worth to try to remove matplotlib.mlab routines, if their numpy counterparts provide the same functionality or do I miss anything? After doing this one additionally could We have been doing

Re: [Matplotlib-users] Newbie question

2009-06-12 Thread Eric Firing
jorgesmbox...@yahoo.es wrote: - Mensaje original De: Eric Firing efir...@hawaii.edu import matplotlib.cbook as cbook def to_sequence(arg): if cbook.is_iterable(arg): I goofed. It should be cbook.iterable(arg). Eric

Re: [Matplotlib-users] Python 2.6.2 installation?

2009-06-12 Thread Christoph Gohlke
Hello, I have compiled Matplotlib 0.98.5.3 for Python 2.6 for Windows 32-bit using Visual Studio 2008. The build process was straightforward and the produced binaries work for me, specifically there is no crash in _png.pyd when writing PNG files.

Re: [Matplotlib-users] Python 2.6.2 installation?

2009-06-12 Thread John Hunter
On Fri, Jun 12, 2009 at 2:20 PM, Christoph Gohlkecgoh...@uci.edu wrote: Hello, I have compiled Matplotlib 0.98.5.3 for Python 2.6 for Windows 32-bit using Visual Studio 2008. The build process was straightforward and the produced binaries work for me, specifically there is no crash in

Re: [Matplotlib-users] Quiver plot of a netcdf file

2009-06-12 Thread JPKay
Hello, First let me say thank you for all of the help it is very appreciated. Your suggestion to use the command import import mpl_toolkits.basemap has worked, but now a new problem has popped up. Does the Netcdf file need to be in the same directory as the script I am running to retrieve the

Re: [Matplotlib-users] Quiver plot of a netcdf file

2009-06-12 Thread Matthew Brett
Hi, I think you mean:    mpl_toolkits.basemap.NetCDFFile(output.nc, mode='r', maskandscale=True, cache=None, mmap=True, username=None, password=None, verbose=False) Note quotes round filename... Sorry, I missed those out in my previous mail. Best, Matthew

Re: [Matplotlib-users] New contourf() drawing polygon boundaries for some reason?

2009-06-12 Thread Zane Selvans
If I set path.simplify: False, the shape of the gaps between the filled polygons does change. Instead of being irregular, it becomes an infinitessimally thin gap of uniform width, allowing the (in this case white) background to show through. In both of these cases (path.simplify: True|False),

Re: [Matplotlib-users] New contourf() drawing polygon boundaries for some reason?

2009-06-12 Thread Zane Selvans
I switched back to using the macosx backend, and it turns out that the thin black lines surrounding the polygons (including crossing the filled contour regions from one closed contour to another) only get displayed in the GUI. PDF and PNG output look fine. Zane On Fri, Jun 12, 2009 at 2:27 PM,

Re: [Matplotlib-users] Python 2.6.2 installation?

2009-06-12 Thread Christoph Gohlke
Here are the Windows installer and egg produced by setup.py bdist_wininst respectively setupegg.py bdist_egg: http://www.lfd.uci.edu/~gohlke/download/matplotlib-0.98.5.3.win32-py2.6.exe.zip http://www.lfd.uci.edu/~gohlke/download/matplotlib-0.98.5.3_r0-py2.6-win32.egg.zip The installer worked