Re: [Matplotlib-users] Legend in X coordinates

2008-12-30 Thread Jae-Joon Lee
The exact location of the legend is known at drawing time. Thus, the location of the text needs to be calculated at the drawing. I may help you with this but it is quite tricky and you need some knowledge on internals of the mpl. Or, you may simply draw the figure twice (with same renderer), where

Re: [Matplotlib-users] python and matplotlib animation

2008-12-30 Thread davev
Please feel free to do so. If you need anything from me, I will be glad to provide it. dave John Hunter-4 wrote: > > On Tue, Dec 30, 2008 at 1:31 PM, davev wrote: >> >> Thank you John, that made the difference. I had read that you needed to >> call >> the draw function for the canvas first bu

Re: [Matplotlib-users] Azmuthal Equidistant won't plot the entire earth!

2008-12-30 Thread Rob Frohne
Hi Jeff, I am an amateur radio operator, and I am writing a little application to display where the major lobe of my antenna is pointing. I can control the direction of my antenna with the computer, and it would be nice to have a display of the whole world, as well as circles representing how fa

Re: [Matplotlib-users] Error when running code on remote machine: how can I overpass this?

2008-12-30 Thread Eric Firing
Eric Emsellem wrote: > Hi, > > I am trying to run a relatively large code, which includes some calls to and > import from pylab/matplotlib, on a remote machine: the part of the code I am > running is NOT performing any plot so there is no direct access to a display. > Unfortunately it still crashe

Re: [Matplotlib-users] Error when running code on remote machine: how can I overpass this?

2008-12-30 Thread Jeff Whitaker
Eric Emsellem wrote: > Hi, > > I am trying to run a relatively large code, which includes some calls to and > import from pylab/matplotlib, on a remote machine: the part of the code I am > running is NOT performing any plot so there is no direct access to a display. > Unfortunately it still crashes

Re: [Matplotlib-users] Error when running code on remote machine: how can I overpass this?

2008-12-30 Thread Eric Emsellem
sorry, I just found the simple way out and so I am answering my own post: use Agg instead of GtkAgg... sorry for the dummy question and the inconvenience, and have a nice end of 2008 cheers > I am trying to run a relatively large code, which includes some calls to and > import from pylab/matpl

Re: [Matplotlib-users] Azmuthal Equidistant won't plot the entire earth!

2008-12-30 Thread Jeff Whitaker
Rob Frohne wrote: > Hi, > > I think I am running into the same thing John is here. When you want to > display the whole earth in 'aeqd' mode, the projection needs to be onto a > circle. As it is, what is plotted is a square that just fits inside the > circle I want. Here is a link to a photo of

[Matplotlib-users] Error when running code on remote machine: how can I overpass this?

2008-12-30 Thread Eric Emsellem
Hi, I am trying to run a relatively large code, which includes some calls to and import from pylab/matplotlib, on a remote machine: the part of the code I am running is NOT performing any plot so there is no direct access to a display. Unfortunately it still crashes with something like: ---> 40

Re: [Matplotlib-users] Azmuthal Equidistant won't plot the entire earth!

2008-12-30 Thread Rob Frohne
Hi, I think I am running into the same thing John is here. When you want to display the whole earth in 'aeqd' mode, the projection needs to be onto a circle. As it is, what is plotted is a square that just fits inside the circle I want. Here is a link to a photo of the kind of projection I wan

Re: [Matplotlib-users] Azmuthal Equidistant won't plot the entire earth!

2008-12-30 Thread Rob Frohne
I just thought I would include some code so you can see what I mean. from mpl_toolkits.basemap import Basemap import matplotlib.pyplot as plt import numpy as np map=Basemap(projection='aeqd', lat_0=46, lon_0=-118.4, width=2830, height=2830, resolution='c', area_thresh=1000.) m

[Matplotlib-users] Legend in X coordinates

2008-12-30 Thread Christopher Brown
Hi, How can I get the position, in x coordinates/units, of the legend? Specifically, I'd like to get the center of the legend box, because I want to add some text that is centered-aligned with the legend. Thanks. -- Christopher Brown, Ph.D. Department of Speech and Hearing Science Arizona Stat

Re: [Matplotlib-users] making continuous color images with custom colormaps

2008-12-30 Thread John Hunter
On Tue, Dec 30, 2008 at 1:10 PM, Eric Firing wrote: > Michael Hearne wrote: >> I am posting yet another question about colormaps, as I am having >> trouble grasping the fundamentals of the way the color model works in >> Matplotlib. > > Mike, > > I recently added examples/pylab_examples/custom_cma

Re: [Matplotlib-users] python and matplotlib animation

2008-12-30 Thread John Hunter
On Tue, Dec 30, 2008 at 1:31 PM, davev wrote: > > Thank you John, that made the difference. I had read that you needed to call > the draw function for the canvas first but it wasn't clear from the > examples. Now that you have given me the correct place to make the call, > things are working as ex

Re: [Matplotlib-users] making continuous color images with custom colormaps

2008-12-30 Thread Michael Hearne
Looking at Eric's documentation, I now understand that my cdict will not work. I retract my question for now until I can figure out how to make a cdict that looks like what I want. Thanks. Eric Firing wrote: > Michael Hearne wrote: >> I am posting yet another question about colormaps, as I am h

Re: [Matplotlib-users] python and matplotlib animation

2008-12-30 Thread davev
Thank you John, that made the difference. I had read that you needed to call the draw function for the canvas first but it wasn't clear from the examples. Now that you have given me the correct place to make the call, things are working as expected. If we wanted to, this small project could easil

Re: [Matplotlib-users] making continuous color images with custom colormaps

2008-12-30 Thread Eric Firing
Michael Hearne wrote: > I am posting yet another question about colormaps, as I am having > trouble grasping the fundamentals of the way the color model works in > Matplotlib. Mike, I recently added examples/pylab_examples/custom_cmap.py with an extensive docstring, partly stolen from the cook

[Matplotlib-users] making continuous color images with custom colormaps

2008-12-30 Thread Michael Hearne
I am posting yet another question about colormaps, as I am having trouble grasping the fundamentals of the way the color model works in Matplotlib. There are many examples on-line of very nice looking continuous color images, such as the one that would be produced by using this code: /delta =

Re: [Matplotlib-users] Manually limiting value ranges

2008-12-30 Thread B Clowers
Christian, The answer to your second question is a little more involved and I think there are a few posts regarding custom colormaps on the mailing list that may be of interest...I'd try searching through those.  I may not be the best person to answer that question.  Also you may be intereste