Re: [Matplotlib-users] accessing axis artist objects for an axes object

2016-09-07 Thread Hearne, Mike
e have a test for it) > > for i, tick in enumerate(ax.yaxis.get_major_ticks()): > tick.set_pad(tick.get_pad() - i * 5) > > A bit silly, but it is how you can have labels anywhere you want relative to > the ticks. > > > On Wed, Sep 7, 2016 at 11:47 AM, Hearne, Mi

Re: [Matplotlib-users] accessing axis artist objects for an axes object

2016-09-07 Thread Hearne, Mike
you do that by setting a negative tickpad value in the rcParams. > > On Wed, Sep 7, 2016 at 11:28 AM, Hearne, Mike wrote: >> >> Thomas - I hate to be obtuse, but did you mean to imply that the xaxis >> and yaxis properties of an Axes object are AxisArtist objects? >&g

Re: [Matplotlib-users] accessing axis artist objects for an axes object

2016-09-07 Thread Hearne, Mike
Axes/Axis classes. > > Tom > > > On Tue, Sep 6, 2016, 19:53 Hearne, Mike wrote: >> >> Python: 3.5 >> Matplotlib: 1.5.2 >> >> I'm trying to invert the tick labels on a Cartopy map, and I found >> this Matplotlib example: >> >> ax.ax

[Matplotlib-users] accessing axis artist objects for an axes object

2016-09-06 Thread Hearne, Mike
Python: 3.5 Matplotlib: 1.5.2 I'm trying to invert the tick labels on a Cartopy map, and I found this Matplotlib example: ax.axis[:].invert_ticklabel_direction() found here: http://matplotlib.org/mpl_toolkits/axes_grid/users/axisartist.html My problem is that any Axes object (or child class the

Re: [Matplotlib-users] avoid duplicate legends

2014-10-20 Thread Hearne, Mike
For your first question: Use the legend "numpoints" keyword. I think if you set it to 1, it should solve that problem. For your second question, I'm not sure, but I'll bet if you poke around in the Legend object returned by the function, you'll find something. On Mon, Oct 20, 2014 at 8:04 AM, To

[Matplotlib-users] Draping an image over topography in Basemap

2014-06-11 Thread Hearne, Mike
Is it possible to drape an image over a topography dataset? One example, from a package called GMT, is here: http://gmt.soest.hawaii.edu/doc/5.1.1/gallery/ex32.html If so, does anyone have a sample of how this would be accomplished? Thanks, Mike

[Matplotlib-users] basemap and imshow at high latitudes

2013-03-11 Thread Hearne, Mike
I have an issue with basemap.imshow() at higher latitudes - namely the image (high-res topography, in this case) becomes distorted with respect to the coastlines the higher I go.I assume it has to do with the image pixels becoming more non-square the higher I go in latitude. I found this discu