Re: [Matplotlib-users] Heat Map

2010-04-02 Thread Marius 't Hart
rachel-mikel_arcejae...@hmc.edu wrote: Hello, I'm trying to create a heat map from two lists of corresponding X and Y coordinates. I've tried both numpy.histogram2d() and pyplot.hexbin(). The histogram I get back doesn't correspond to the points I gave it. It seems as if it's sorting

[Matplotlib-users] Basemap/ orthographic projection plot doesn't respect globe boundary

2010-04-02 Thread Will Hewson
Hi forum/ mailing list, When I plot in the orthographic projection I'm getting the large artefact shown below extending away from the north east of the globe. I'm not finding the same problem when plotting in a full globe projection so I'm presuming the problem is with the way I'm projecting

[Matplotlib-users] Basemap/ orthographic projection plot doesn't respect globe boundary

2010-04-02 Thread Will Hewson
Hi forum/ mailing list, When I plot in the orthographic projection I'm getting the large artefact shown below extending away from the north east of the globe. I'm not finding the same problem when plotting in a full globe projection so I'm presuming the problem is with the way I'm projecting

Re: [Matplotlib-users] Basemap/ orthographic projection plot doesn't respect globe boundary

2010-04-02 Thread Jeff Whitaker
On 4/2/10 4:27 AM, Will Hewson wrote: Hi forum/ mailing list, When I plot in the orthographic projection I'm getting the large artefact shown below extending away from the north east of the globe. I'm not finding the same problem when plotting in a full globe projection so I'm presuming the

Re: [Matplotlib-users] Basemap/ orthographic projection plot doesn't respect globe boundary

2010-04-02 Thread Jeff Whitaker
On 4/2/10 4:27 AM, Will Hewson wrote: Hi forum/ mailing list, When I plot in the orthographic projection I'm getting the large artefact shown below extending away from the north east of the globe. I'm not finding the same problem when plotting in a full globe projection so I'm presuming the

Re: [Matplotlib-users] Basemap/ orthographic projection plot doesn't respect globe boundary

2010-04-02 Thread Will Hewson
This is great Jeff, thanks for the help - I'll give it a try over the weekend (it's bank holiday here in the UK!) and get back to you, if I'm still having trouble I'll stick up the plotting data too... thanks again. Will Jeff Whitaker wrote: On 4/2/10 4:27 AM, Will Hewson wrote: Hi forum/

Re: [Matplotlib-users] Basemap/ orthographic projection plot doesn't respect globe boundary

2010-04-02 Thread Jeff Whitaker
On 4/2/10 6:32 AM, Will Hewson wrote: This is great Jeff, thanks for the help - I'll give it a try over the weekend (it's bank holiday here in the UK!) and get back to you, if I'm still having trouble I'll stick up the plotting data too... thanks again. Will Will: I forgot to mention

Re: [Matplotlib-users] Changing the font

2010-04-02 Thread Michael Droettboom
Can you set verbose.level to debug-annoying in your matplotlibrc file, and then send the output to this list. That may help us track down where the font lookup is failing. Also, what platform and version of matplotlib are you running? Mike Alex S wrote: Hi, sorry I wasn't too clear... I

Re: [Matplotlib-users] speed up imports?

2010-04-02 Thread Michael Droettboom
My gut says it's probably the GUI framework import that is dominating the time. Which backend are you using? Does importing it take a large amount of time as well? Can you provide a profiler output file we can examine to narrow it down? The following from a command prompt should be

Re: [Matplotlib-users] MacOS 10.6 install dependency building fails (r8214)

2010-04-02 Thread Thomas Robitaille
Thomas Robitaille wrote: It looks like the zlib website removes previous version of its library that were previously available for download, so the part in make.osx where http://www.zlib.net/zlib-1.2.3.tar.gz is fetched now fails (since the current version is 1.2.4). The error in the

Re: [Matplotlib-users] speed up imports?

2010-04-02 Thread Gökhan Sever
On Fri, Apr 2, 2010 at 8:28 AM, Michael Droettboom md...@stsci.edu wrote: My gut says it's probably the GUI framework import that is dominating the time. Which backend are you using? Does importing it take a large amount of time as well? Can you provide a profiler output file we can

Re: [Matplotlib-users] EPS files with LaTeX are invalid

2010-04-02 Thread Thomas Robitaille
It seems that removing 'restore' on line 1073 of the test_tex_r8216.eps file fixes the problem, although I don't understand postscript well enough to understand why that is. Thomas On Apr 2, 2010, at 9:30 AM, Michael Droettboom wrote: Can you provide us with the EPS file? What version of

Re: [Matplotlib-users] Cmap creation

2010-04-02 Thread Bruce Ford
Below is the example script (sorry!). I've tried all three methods of establishing a colormap to no avail. The most promising looked like option 2, but that gave me the AttributeError: 'module' object has no attribute 'register_cmap' error. I'm getting this error with: Python 2.4 (user

Re: [Matplotlib-users] EPS files with LaTeX are invalid

2010-04-02 Thread Jae-Joon Lee
I just had a quick look, but while extra restore could be a problem, the erroneous one may not be the one at line 1073, but the one at line 1066. I believe that the restore at 1073 is written by pstoeps function in backend_ps.py, and this function did write a matching save at line 11. Regards,

Re: [Matplotlib-users] EPS files with LaTeX are invalid

2010-04-02 Thread Michael Droettboom
At least on my Linux box with gs 7.07, I have to use epstopdf (not pstopdf) to convert an eps file to a pdf. ps2pdf does work for both .ps and .eps files however. It looks like the 0.99.1.1 file is not in fact an .eps file, but a .ps file, (it certainly hasn't had the ps2eps function run on

Re: [Matplotlib-users] EPS files with LaTeX are invalid

2010-04-02 Thread Thomas Robitaille
I just tried running epstopdf, and this does work correctly, so maybe now the only issue is that Preview.app on mac always uses pstopdf, even for eps files? (which then is not a matplotlib issue) I also checked that giving the file the extension '.ps' produces a ps file, and that does open

Re: [Matplotlib-users] Cmap creation

2010-04-02 Thread Eric Firing
Bruce Ford wrote: Below is the example script (sorry!). I've tried all three methods of establishing a colormap to no avail. The most promising looked like option 2, but that gave me the AttributeError: 'module' object has no attribute 'register_cmap' error. I'm getting this error with:

[Matplotlib-users] visualizing colormaps for complex functions

2010-04-02 Thread Guy Rutenberg
Hi, Is there a way to generate colormaps for complex-valued functions using matplotlib? The type of plots I'm looking for are like the plots in: http://commons.wikimedia.org/wiki/User:Jan_Homann/Mathematics Thanks in advance, Guy http://www.guyrutenberg.com

Re: [Matplotlib-users] speed up imports?

2010-04-02 Thread Michael Droettboom
Can you provide the actual saved profiler data? The output of the command itself doesn't provide enough information to diagnose the problem, since it doesn't have full file paths etc. When you do (thanks Gökhan for the less verbose version): python.exe -c import cProfile;

Re: [Matplotlib-users] speed up imports?

2010-04-02 Thread Michael Droettboom
It looks like most of the time is being taken up by pytz (timezone library), which opens ~500 files. How does the total time of import pytz compare? Mike Andrew Kelly wrote: I see. I was wondering why it spit out a binary file. test.out is attached... -Andy On Fri, Apr 2, 2010 at

Re: [Matplotlib-users] speed up imports?

2010-04-02 Thread Andrew Kelly
import pytz only took 0.0 seconds. I actually just ran that pstats module and there is one line that stuck out at me: ncalls tottime percall cumtime percall filename:lineno(function) 10.0000.0000.0000.000 C:\Python26\lib\os.py:35(_get_exports_list) 560

Re: [Matplotlib-users] speed up imports?

2010-04-02 Thread Eric Firing
Andrew Kelly wrote: import pytz only took 0.0 seconds. Sounds like it was already imported, so you were not really timing that import. On linux (ubuntu 9.10, Lenovo T60 laptop) importing pytz takes longer than importing numpy: efir...@manini:~$ time python -c import pytz real

[Matplotlib-users] Issues with Affine2D transform

2010-04-02 Thread Thomas Robitaille
Hi, I have been trying to use the Affine2D transformation with pcolor and contour, with no success. The following script and comments illustrates my problems: matplotlib.use('Agg') import matplotlib.pyplot as mpl from matplotlib.transforms import Affine2D import numpy as np image =

Re: [Matplotlib-users] visualizing colormaps for complex functions

2010-04-02 Thread Gary Ruben
Hi Guy, I am also interested in the answer to this. The cplot function in the mpmath module does exactly this using matplotlib, but very inefficiently, as it computes the colour of each pixel in the image in hls colour-space and generates the corresponding rgb value directly. I suspect this