Hi All,

I can't get the x label on the top row of an ImageGrid to display if there
is more than one row in the grid.  I suspect that something is being clipped
somewhere, but have no idea what to do to fix it.  (Note, this also happens
on the right edge of a ride-sided y axis label.)

I have included some minimal sample code below.  I'd appreciate it if anyone
can point me in the right direction.


Cheers,
Russ

#-------------------------------

import matplotlib.pyplot as plt
import matplotlib.cm as cm
import mpl_toolkits.axes_grid1 as ag

import numpy as np

fig1 = plt.figure()

grid1 = ag.AxesGrid( fig1, 111, nrows_ncols = (1,2), axes_pad = 0.5)

grid1[0].axes.xaxis.set_label_position('top')
grid1[0].axes.xaxis.set_label_text('foo')

grid1[1].axes.xaxis.set_label_position('top')
grid1[1].axes.xaxis.set_label_text('bar')

grid1[0].axes.yaxis.set_label_position('right')
grid1[0].axes.yaxis.set_label_text('foo')

grid1[1].axes.yaxis.set_label_position('right')
grid1[1].axes.yaxis.set_label_text('bar')


fig2 = plt.figure()

grid2 = ag.AxesGrid( fig2, 111, nrows_ncols = (2,1), axes_pad = 0.5)

grid2[0].axes.xaxis.set_label_position('top')
grid2[0].axes.xaxis.set_label_text('bar')

grid2[1].axes.xaxis.set_label_position('top')
grid2[1].axes.xaxis.set_label_text('bar')

grid2[0].axes.yaxis.set_label_position('right')
grid2[0].axes.yaxis.set_label_text('foo')

grid2[1].axes.yaxis.set_label_position('right')
grid2[1].axes.yaxis.set_label_text('bar')


plt.show()

#-------------------------------

-- 
Russell J. Hewett
Ph.D. Candidate
Department of Computer Science
University of Illinois at Urbana-Champaign
www.russellhewett.com
------------------------------------------------------------------------------
Special Offer-- Download ArcSight Logger for FREE (a $49 USD value)!
Finally, a world-class log management solution at an even better price-free!
Download using promo code Free_Logger_4_Dev2Dev. Offer expires 
February 28th, so secure your free ArcSight Logger TODAY! 
http://p.sf.net/sfu/arcsight-sfd2d
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

Reply via email to