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

2016-09-07 Thread Benjamin Root
... or report it as a bug against Cartopy for not observing the pad rcParam? On Wed, Sep 7, 2016 at 12:59 PM, Hearne, Mike wrote: > It turns out that the Cartopy gridline labels are NOT tick labels, but > Text objects managed by the Gridliner class. I think I'm just going >

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

2016-09-07 Thread Hearne, Mike
It turns out that the Cartopy gridline labels are NOT tick labels, but Text objects managed by the Gridliner class. I think I'm just going to draw the grid line labels myself. On Wed, Sep 7, 2016 at 9:04 AM, Benjamin Root wrote: > Hmm, strange. Well, I know this works in

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

2016-09-07 Thread Benjamin Root
Hmm, strange. Well, I know this works in mplot3d (we 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

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

2016-09-07 Thread Hearne, Mike
I couldn't find an rcParams property called "tickpad". I did find "xtick.major.pad", which was set to 4.0. Setting it to a negative value has no effect. xtick.minor.pad doesn't do anything either. On Wed, Sep 7, 2016 at 8:32 AM, Benjamin Root wrote: > I think you do that

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

2016-09-07 Thread Benjamin Root
I think 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? > IPython

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

2016-09-07 Thread Hearne, Mike
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? IPython tells me that they are XAxis and YAxis objects. From inspecting the GitHub repo, it seems that these are child classes of the Axis object. I suppose I

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

2016-09-06 Thread Thomas Caswell
ax.xaxis or ax.yaxis axes_grid is an alternative to the default 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: > >

[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