Re: [Matplotlib-users] Interactively get readable(i.e. lng/lat) coordinates from a matplotlib basemap plot?

2014-04-30 Thread Jonathan_Kowalik
I already got the answer: ax = plt.gca() def format_coord(x, y): return 'x=%.4f, y=%.4f'%(m(x, y, inverse = True)) ax.format_coord = format_coord This does exactly what I wanted. :-) -- View this message in context: http://matplotlib.1069221.n5.nabble.com/Interactively-get

[Matplotlib-users] Which api to learn?

2014-04-30 Thread Neal Becker
I've never used matlab (and hope never to have to). But I've been using pyplot api for mpl for quite a while. Is there any good reason to move to the "native" mpl api and drop pyplot? I ask because as I understand, pyplot is intended as a matlab workalike, and since I never learned matlab I

Re: [Matplotlib-users] Which api to learn?

2014-04-30 Thread Benjamin Root
I wrote up my answer to this question on stackoverflow once: https://stackoverflow.com/questions/19895262/when-to-use-the-matplotlib-pyplot-class-and-when-to-use-the-plot-object-matplot/21004357#21004357 Others may have different opinions or variations on the theme, but this is how I look at the i

Re: [Matplotlib-users] Which api to learn?

2014-04-30 Thread Paul Hobson
The only pyplot function I let myself use is plt.subplots() to quickly create the Figure and Axes objects. From that point on, I operate on those objects directly. Frankly, it reads almost exactly like pyplot code, but it is a *lot* more clear what's going on. On Wed, Apr 30, 2014 at 4:49 AM, Nea

[Matplotlib-users] Visible image joins

2014-04-30 Thread Hattersley, Richard
Hi, I'm trying to display a mosaic of image tiles in a single plot, but I keep getting lines between the tiles. Is there a way to avoid these lines? (I'd really rather not pre-process the images to stitch them all together into a single image.) The following code reproduces the problem: impor

Re: [Matplotlib-users] Which api to learn?

2014-04-30 Thread Neal Becker
Paul Hobson wrote: > The only pyplot function I let myself use is plt.subplots() to quickly > create the Figure and Axes objects. From that point on, I operate on those > objects directly. Frankly, it reads almost exactly like pyplot code, but it > is a *lot* more clear what's going on. > ... Ac

Re: [Matplotlib-users] Which api to learn?

2014-04-30 Thread Michiel de Hoon
99.9% of the time I am using pyplot, as it usually does what I want without me having to understand an api. I don't care so much if pyplot agrees with matlab or not, but it should be something easy that new users can pick up quickly. Best, -Michiel O