Re: [Matplotlib-users] canvas.print_figure printing a variable amount of my figure

2008-10-06 Thread David Goldsmith
The "solution" which worked well for me was to bite the bullet and switch to PIL for my image generating/processing needs. FWIW, DG --- On Mon, 10/6/08, Eric Firing <[EMAIL PROTECTED]> wrote: > From: Eric Firing <[EMAIL PROTECTED]> > Subject: Re: [Matplotlib-users] canvas.print_figure printing

Re: [Matplotlib-users] canvas.print_figure printing a variable amount of my figure

2008-10-06 Thread Christopher Barker
Eric Firing wrote: > I think the longstanding separation between the figure.dpi and the > savefig.dpi is a continual gotcha that we can and should eliminate. +1 I've never understood the separation -- why wouldn't it default to the figure.dpi -- it could always be overridden by the keyword ar

Re: [Matplotlib-users] Getting resize_event to work

2008-10-06 Thread John Hunter
On Mon, Oct 6, 2008 at 1:40 PM, Eric Firing <[EMAIL PROTECTED]> wrote: > Jon Froehlich wrote: >> Hi Eric, >> >> Thanks for the response. I am just calling show() within pylab and a GUI >> automatically pops-up. A screenshot is attached. It looks like the >> underlying GUI is TK? I am on Vista (unfo

Re: [Matplotlib-users] canvas.print_figure printing a variable amount of my figure

2008-10-06 Thread Ryan May
Eric Firing wrote: > Christopher Barker wrote: >> David Goldsmith wrote: >>> I feel like I must be missing something >> yup -- though it's an understandable miss... > > I think the longstanding separation between the figure.dpi and the > savefig.dpi is a continual gotcha that we can and should el

Re: [Matplotlib-users] customizing Basemap

2008-10-06 Thread Jeff Whitaker
Mathew Yeates wrote: > I found example I wish to build on. It's embedding_in_gtk2.py under > mpl_examples/user_interfaces. I'll put a menu at the top. But how can > I add a Basemap instead of a Figure? > > Mathew Mathew: A basemap plot is just like any other matplotlib plot, it's associated wi

Re: [Matplotlib-users] Getting resize_event to work

2008-10-06 Thread Eric Firing
Jon Froehlich wrote: > Back in March, 2007, a user asked about getting the resize_even to work. > No one responded to his question. I have the same problem. I tried > hooking up a method that I hoped would be called every time the graph > was resized (using the UI that is displayed by a show() c

Re: [Matplotlib-users] canvas.print_figure printing a variable amount of my figure

2008-10-06 Thread Eric Firing
Christopher Barker wrote: > David Goldsmith wrote: >> I feel like I must be missing something > > yup -- though it's an understandable miss... I think the longstanding separation between the figure.dpi and the savefig.dpi is a continual gotcha that we can and should eliminate. Savefig should us

Re: [Matplotlib-users] customizing Basemap

2008-10-06 Thread Andrew Straw
Dear Mathew, most of the basemap methods take an "ax=" keyword (drawparallels, drawmeridians, drawmapboundary and so on). Furthermore, you can transform your lat/long coordinates to projected coordinates with the __call__ method and then simply plot those directly. You can thus plot basemaps on an

Re: [Matplotlib-users] Getting resize_event to work

2008-10-06 Thread Eric Firing
Jon Froehlich wrote: > Hi Eric, > > Thanks for the response. I am just calling show() within pylab and a GUI > automatically pops-up. A screenshot is attached. It looks like the > underlying GUI is TK? I am on Vista (unfortunately). The problem is TK-specific, not Vista-specific. I can reprod

Re: [Matplotlib-users] customizing Basemap

2008-10-06 Thread Mathew Yeates
Thanks for the help!! Jeff Whitaker wrote: > Mathew Yeates wrote: >> I found example I wish to build on. It's embedding_in_gtk2.py under >> mpl_examples/user_interfaces. I'll put a menu at the top. But how can >> I add a Basemap instead of a Figure? >> >> Mathew > > Mathew: A basemap plot is ju

Re: [Matplotlib-users] canvas.print_figure printing a variable amount of my figure

2008-10-06 Thread Christopher Barker
David Goldsmith wrote: > I feel like I must be missing something yup -- though it's an understandable miss... > Attached are the results on my computer (see usage details below). > Granted, I'm increasing the resolution each iteration, you are increasing the resolution of the figure, and of you

Re: [Matplotlib-users] customizing Basemap

2008-10-06 Thread John Hunter
On Mon, Oct 6, 2008 at 11:23 AM, Jeff Whitaker <[EMAIL PROTECTED]> wrote: > Basemap doesn't handle any GUI stuff - this is all done by matplotlib > proper. So, you'll need to look at the matplotlib docs to see how to > customize the toolbar. Mathew, To do stuff like adding menus and customizing

Re: [Matplotlib-users] customizing Basemap

2008-10-06 Thread Mathew Yeates
I found example I wish to build on. It's embedding_in_gtk2.py under mpl_examples/user_interfaces. I'll put a menu at the top. But how can I add a Basemap instead of a Figure? Mathew Jeff Whitaker wrote: > Mathew Yeates wrote: >> Hi >> How easy is it to customize the Basemap class? I seem to re

Re: [Matplotlib-users] customizing Basemap

2008-10-06 Thread Jeff Whitaker
Mathew Yeates wrote: > Hi > How easy is it to customize the Basemap class? I seem to remember an > example where something is added to the toolbar but I can't remember > which example it was. What if I want to add a menu at the top of the window? > > Mathew > > Mathew: Basemap doesn't handl

[Matplotlib-users] customizing Basemap

2008-10-06 Thread Mathew Yeates
Hi How easy is it to customize the Basemap class? I seem to remember an example where something is added to the toolbar but I can't remember which example it was. What if I want to add a menu at the top of the window? Mathew

Re: [Matplotlib-users] apply factor to numbers on axis

2008-10-06 Thread Henry Proudhon
On Mon, 2008-10-06 at 08:04 -0500, John Hunter wrote: > On Mon, Oct 6, 2008 at 3:52 AM, Henry Proudhon <[EMAIL PROTECTED]> wrote: > > Hi everyone, > > > > I wonder if there is a simple way to apply a multiplication factor to > > the ticks labels of an axis. > > > > say I'm plotting a 100 x 100 mat

Re: [Matplotlib-users] Problems plotting/closing figures within a thread

2008-10-06 Thread Gregor Thalhammer
jcarnes schrieb: > I am writing a GUI application in wxPython and using MPL that plots figures, > saves them to image files, and then closes them all from within a thread to > keep the GUI responsive. Using the Enthought 2.3 install I would > sporatically have crashes that were hard to reproduce, b

Re: [Matplotlib-users] apply factor to numbers on axis

2008-10-06 Thread John Hunter
On Mon, Oct 6, 2008 at 3:52 AM, Henry Proudhon <[EMAIL PROTECTED]> wrote: > Hi everyone, > > I wonder if there is a simple way to apply a multiplication factor to > the ticks labels of an axis. > > say I'm plotting a 100 x 100 matrix with imshow and want the axis to > show (0 to 70) instead of (0 t

Re: [Matplotlib-users] Getting resize_event to work

2008-10-06 Thread Jon Froehlich
Back in March, 2007, a user asked about getting the resize_even to work. No one responded to his question. I have the same problem. I tried hooking up a method that I hoped would be called every time the graph was resized (using the UI that is displayed by a show() call). connect('resize_event'

Re: [Matplotlib-users] ellipse in log-log

2008-10-06 Thread John Hunter
On Mon, Oct 6, 2008 at 7:15 AM, Michael Droettboom <[EMAIL PROTECTED]> wrote: > In 0.98 ellipse is drawn using bezier curves, which do not scale > correctly in log-scaled plots. > > As an alternative, you can use a RegularPolygon with a high number of > vertices (this is exactly what 0.91 did). He

Re: [Matplotlib-users] luminocity plot on hammer projection

2008-10-06 Thread Michael Droettboom
imshow always assumes a regular rectangular grid of pixels. To plot image data on a non-rectilinear projection, you need to use pcolor or pcolormesh. You may also want to look at the basemap toolkit, which provides much better support for geographic projections. The ones included in matplotl

Re: [Matplotlib-users] luminocity plot on hammer projection

2008-10-06 Thread Jeff Whitaker
Eric Firing wrote: > dasratsel wrote: > >> Hi, >> >> I've done some poking an I can't find a way to use imshow() to plot a >> luminosity map on a hammer projection. (looking to generate a plot like >> http://en.wikipedia.org/wiki/Image:WMAP_2008.png). Just setting the >> projection in a call to

Re: [Matplotlib-users] Citation for Numpy

2008-10-06 Thread Darren Dale
On Monday 29 September 2008 13:35:57 Buz Barstow wrote: > Dear All, > > Does anyone know of a citation that I can use for Numpy? > > Thanks! and all the best, I found the following link that discusses a few options, but you may want to ask on the numpy-discussion mailing list if there is a more u

Re: [Matplotlib-users] ellipse in log-log

2008-10-06 Thread Michael Droettboom
In 0.98 ellipse is drawn using bezier curves, which do not scale correctly in log-scaled plots. As an alternative, you can use a RegularPolygon with a high number of vertices (this is exactly what 0.91 did). Mike Yves Revaz wrote: > Dear list, > > How is it possible to draw a nice ellipse in a

[Matplotlib-users] apply factor to numbers on axis

2008-10-06 Thread Henry Proudhon
Hi everyone, I wonder if there is a simple way to apply a multiplication factor to the ticks labels of an axis. say I'm plotting a 100 x 100 matrix with imshow and want the axis to show (0 to 70) instead of (0 to 100), while still displaying the whole matrix. In that case the coefficient would be

[Matplotlib-users] ellipse in log-log

2008-10-06 Thread Yves Revaz
Dear list, How is it possible to draw a nice ellipse in a log-log plot using patches.Ellipse ? With matplotlib 0.91 I was able to to that using : Ellipse((log10(100),log10(100)), width=100, height=100,alpha=0.5) Now, it seems that something has changed in version 0.98 and I do not need to ad th

Re: [Matplotlib-users] ValueError: Can only output finite numbers in PDF

2008-10-06 Thread Alan
Thanks for all replies. I got a solution by copying some files from SVN trunk revision 6155. I did as follow: svn co https://matplotlib.svn.sourceforge.net/svnroot/matplotlib/trunk/matplotlib sudo cp -b matplotlib/lib/matplotlib/backends/backend_pdf.py /sw/lib/python2.5/site-packages/matplotlib/b