[Matplotlib-users] Get distances between points in basemap?

2012-08-20 Thread Scott Henderson
I'm trying to efficiently get the distances of all points on a map to a specified point. If the map is in projected coordinates, what is the best way of going about this? Is there is a 'standard' way to get the distance between points through internal basemap functions? After some scrounging ar

Re: [Matplotlib-users] Problem with contains() on an arrow

2012-08-20 Thread Daniel Hyams
Hmm, I just found out that if I change path.Path.contains_point to use "point_on_path" instead of "point_in_path", the containment tests work properly. I'm not that familiar with the path code...is the difference that one is testing for polygonal insideness, and one is testing for literally being

Re: [Matplotlib-users] basemap imshow() extents

2012-08-20 Thread Jeff Whitaker
On 8/20/12 8:21 PM, Scott Henderson wrote: > On Mon 20 Aug 2012 06:29:01 PM EDT, Jeff Whitaker wrote: >> On 8/20/12 4:41 PM, Scott Henderson wrote: >>> I'm having trouble with transform_scalar() and imshow() with basemap. >>> Essential I have data from satellite tracks that are either smaller >>> o

[Matplotlib-users] Problem with contains() on an arrow

2012-08-20 Thread Daniel Hyams
I've run into a strange problem with contains() on an arrow; there is a large area to the left of the arrow that insists that it is contained within the arrow. Small runnable sample attached. I've looked at the path for the arrow, and it looks fine to me. I even went so far as to hack a STOP ont

Re: [Matplotlib-users] basemap imshow() extents

2012-08-20 Thread Jeff Whitaker
On 8/20/12 4:41 PM, Scott Henderson wrote: I'm having trouble with transform_scalar() and imshow() with basemap. Essential I have data from satellite tracks that are either smaller or larger than the map extent, so I don't want to use Basemap.imshow() which sets the 'extent' keyword automatical

[Matplotlib-users] boxplot data --- how?

2012-08-20 Thread Virgil Stokes
I have been generating boxplots with matplotlib 1.1.0 and the plots look great. How can I find the median, fliers, etc. that are used for the boxplots? In general, where can I find documentation on how to get these data from a boxplot? Best regards! [Using matplotlib 1.1.0 with Python 2.7.3 on

[Matplotlib-users] basemap imshow() extents

2012-08-20 Thread Scott Henderson
I'm having trouble with transform_scalar() and imshow() with basemap. Essential I have data from satellite tracks that are either smaller or larger than the map extent, so I don't want to use Basemap.imshow() which sets the 'extent' keyword automatically. I tried following the following sugges

Re: [Matplotlib-users] x-axis Tick Label Alignment w/Cairo

2012-08-20 Thread Michael Droettboom
Thanks for this. It's been a long-standing bug that text is handled by bounding box, but it's been difficult to find a way forward without breaking backward compatibility. I've filed an issue for this here. https://github.com/matplotlib/matplotlib/issues/1121 It may be, in the long run, that

Re: [Matplotlib-users] x-axis Tick Label Alignment w/Cairo

2012-08-20 Thread Freddie Witherden
On 19/08/12 23:48, Freddie Witherden wrote: > Hello, > > Using the Cairo backend with the following snippet: > > from matplotlib.figure import Figure > from matplotlib.artist import setp > from matplotlib.backends.backend_agg import FigureCanvasAgg > from matplotlib.backends.backend_cairo import

[Matplotlib-users] color sequence reset

2012-08-20 Thread ilan barak
Hello I have set rcParams['axes.color_cycle'] = ['r','Blue',    'g', 'm','c','k',    'Tomato... ] to a long list of colors. Later in the program I have many figure() commands floowed by plot commands. The color sequence does not repateat itself for each new figure How do I reset the se

Re: [Matplotlib-users] Fwd: zoomed in detail box

2012-08-20 Thread darkside
Thank you for your help, but I have already read this link. I am using zoomed_inset_axes, but the default position overlaps the yticks and the parent axe ticks, so I am trying: axins = zoomed_inset_axes(ax, 3,bbox_to_anchor(0.5,1),bbox_transform=ax.figure.transFigure, loc=2) but it doesn't work.

Re: [Matplotlib-users] for a log y axis, set_major_formatter then twiny() removes the set_major_formatter

2012-08-20 Thread Michael Droettboom
I've filed an issue for this here: https://github.com/matplotlib/matplotlib/issues/1110 Mike On 08/19/2012 05:55 PM, Eric Firing wrote: On 2012/08/19 10:31 AM, Christopher Graves wrote: Hi I do not think this is the expected behavior. First, run the following: from pylab import * plot([0