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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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 =
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
18 matches
Mail list logo