Re: [Matplotlib-users] text box shadow

2010-01-19 Thread Jae-Joon Lee
Using the patheffect in the svn, shadows can be easily supported in all the patch-like classes, including the patch of the texts. (For example, see the last example in patheffect_demo.py). So, it should be straight forward and I don't see any harm in doing that. However, I personally prefer to hav

Re: [Matplotlib-users] question re: map projection conversion and NetCDF files

2010-01-19 Thread Jeff Whitaker
Michael Mason wrote: > Hello, > > I have a set of NetCDF files that are in Lambert Conformal projection, > and I want to convert them to rectilinear, lat/lon projection. I'm > able to do this and plot the data and print the data out to a png > file. However, I want to get access to the underlying

Re: [Matplotlib-users] text box shadow

2010-01-19 Thread John Hunter
On Tue, Jan 19, 2010 at 4:34 PM, Jae-Joon Lee wrote: > This is generally a very difficult thing to do, as the position and > the extent of the text is determined when the figure is drawn. > > The best way, I guess, is to create a customized Text class, but I do > not recommend this unless you're f

Re: [Matplotlib-users] mplot3d scatter3d marker sizes?

2010-01-19 Thread Erik Tollerud
Apparently it wasn't recent enough - I updated to the latest svn and now they are sizing properly - thanks! Another oddity I've noticed, though - if I do ax.scatter3D(x,y,z,s=30*rand(20),c=rand(20)) I would expect to see the points colored based on a color map for the supplied scalar values. In

Re: [Matplotlib-users] text box shadow

2010-01-19 Thread Jae-Joon Lee
This is generally a very difficult thing to do, as the position and the extent of the text is determined when the figure is drawn. The best way, I guess, is to create a customized Text class, but I do not recommend this unless you're familiar with matplotlib internals. If you're using svn version

Re: [Matplotlib-users] Using a table as a legend, ugly text output?

2010-01-19 Thread Jae-Joon Lee
While I don't known much about how table class in matplotlib works internally, I think it would not be easy (because the legend is quite a unique object whose position is determined at drawing time). The current legend implementation is based on the offsetbox module. While it does not have a tabl

[Matplotlib-users] question re: map projection conversion and NetCDF files

2010-01-19 Thread Michael Mason
Hello, I have a set of NetCDF files that are in Lambert Conformal projection, and I want to convert them to rectilinear, lat/lon projection. I'm able to do this and plot the data and print the data out to a png file. However, I want to get access to the underlying data as it appears after the pr

Re: [Matplotlib-users] Annotate Behaviour - Arrows Missing

2010-01-19 Thread Kurt Forrester
JJ, Indeed it is a typo in the email and not in the script. I have used "annotation_clip" with no result. Additional information that I forgot to supply was that on python 2.5/windows/matplotlib 0.98.xxx (my work machine, not accessible at the moment for the subversion number) this worked fi

Re: [Matplotlib-users] download older versions?

2010-01-19 Thread John Hunter
On Tue, Jan 19, 2010 at 11:44 AM, Ian Rose wrote: > Hello - > > How can I download an old version of matplotlib from sourceforge > (specifically, version 0.91.2)?  This version is already installed on > some other machines and I need to mirror the installation, but the OSes > are different so I ca

[Matplotlib-users] download older versions?

2010-01-19 Thread Ian Rose
Hello - How can I download an old version of matplotlib from sourceforge (specifically, version 0.91.2)? This version is already installed on some other machines and I need to mirror the installation, but the OSes are different so I can't just copy the files over or something like that. As fa

[Matplotlib-users] limiting zoom range to reasonable values

2010-01-19 Thread C M
Hi, I am using a date plot with the toolbar to allow panning/zooming of the plot. If the user (mischievously) zooms in or out an extreme amount, there are some weird artifacts that I'd rather prevent so as to keep the display looking right and prevent possible crashes and lock-ups. For zooming o

[Matplotlib-users] How to fix TKagg interactive plotting in matplotlib?

2010-01-19 Thread Lou Pecora
Does anyone know how to fix the tkagg interactive plotting in matplotlib? I have a Mac Book Pro, Mac OS X 10.4. I installed SAGE (a symbolic math package with Python2.6), but got the following error when trying to import pylab: /Applications/sage/local/lib/python2.6/site-packages/matplotlib/ba

Re: [Matplotlib-users] Printing Graphs and Image Processing Operations

2010-01-19 Thread Christopher Barker
> Wayne Watson wrote: >> I've used MPL a bit, and am wondering if there's a facility for sending >> graphic images to a printer, or putting them in some format like png? you've already gotten an answer to the png part, but as for printing directly: I suspect you could make a pdf and send tha

Re: [Matplotlib-users] Printing Graphs and Image Processing Operations

2010-01-19 Thread Wayne Watson
Thanks. I'll keep this in mind when I get to the point when I'm ready to consider it as part of a program I'm writing. Someone in Image-SIG sent me a module he wrote that might be helpful too. Michael Droettboom wrote: > Wayne Watson wrote: >> I've used MPL a bit, and am wondering if there's a f

Re: [Matplotlib-users] problem with import pylab

2010-01-19 Thread Lou Pecora
- Original Message From: Christoph Gohlke To: H L Cc: matplotlib-users@lists.sourceforge.net Sent: Mon, January 18, 2010 5:04:22 PM Subject: Re: [Matplotlib-users] problem with import pylab The extension _TKAGG.PYD depends on TK84.DLL, TCL84.DLL, MSVCP71.DLL, and MSVCR71.DLL. Make su

[Matplotlib-users] text box shadow

2010-01-19 Thread Jens_M
I'm trying to make a shadow effect behind text boxes in a plot (similarly to what can be done with legends). After a fair bit of searching around I found the matplotlib.patches.Shadow class which seems to be good for this. But I cannot get it to work properly. I suspect it has something to do wit

[Matplotlib-users] zoom problem with app embedded in gtk

2010-01-19 Thread lucas merckelbach
Hi, I wrote a gui with matplotlib embedded in gtk. However, using the zoom button from the navigation toolbar blacks out or randomises the graph until the zoom selection is finished, after which it is redrawn correctly. The same behaviour occurs with the example script: http://matplotlib.sourcef

Re: [Matplotlib-users] Printing Graphs and Image Processing Operations

2010-01-19 Thread Michael Droettboom
Wayne Watson wrote: > I've used MPL a bit, and am wondering if there's a facility for sending > graphic images to a printer, or putting them in some format like png? > I don't necessarily want the graphics to appear in a window, but would > like to print them directly once they are ready. Can

Re: [Matplotlib-users] [matplotlib-users] Figure dimensions issues

2010-01-19 Thread Jae-Joon Lee
On Mon, Jan 18, 2010 at 5:16 PM, Damon McDougall wrote: > The figure is actually cropped. Correct. > Is there another way around this that will get rid of the whitespace and have > the physical figure be 483.69687pt wide? Do not use bbox_inches="tight". Instead adjust the position of the axes

Re: [Matplotlib-users] Using a table as a legend, ugly text output?

2010-01-19 Thread Michael Droettboom
ashleyd wrote: > While I'm posting, another quick question -- my text output looks really > shoddy, even at high DPIs. It looks like somebody took a screenshot of a > tiny font and scaled it up with a linear filter. I have freetype installed, > and the matplotlib build script outputs the followin

Re: [Matplotlib-users] Annotate Behaviour - Arrows Missing

2010-01-19 Thread Jae-Joon Lee
On Tue, Jan 19, 2010 at 2:48 AM, Kurt Forrester wrote: > I modified the script for the hax. annotate(...) to include the > annotate_clip=False, however there is no change in the behaviour of the > arrows. It should be "annotation_clip" not "annotate_clip", but it may be just a typo. Anyhow, as f

[Matplotlib-users] PyQt4 backend delete the widow in C++ but not in Python

2010-01-19 Thread Michele Mattioni
This is the BUG: https://sourceforge.net/tracker/?func=detail&aid=2927619&group_id=80706&atid=560720 If you close the window clicking on the right cross to close the window the window closes properly. If you then try to create a new widow (with the same index) you hit a RunTimeError. Expect: Th