Evan Mason, on 2011-03-16 15:27, wrote: > Hi, I get unexpected behaviour using the script below. xticks only appear in > the 4th subplot. If the lines marked ### are moved out of the loop (and > edited > so that they are constants), then xticks do appear on each subplot. Is this a > bug or am I missing something? > > I am using matplotlib 1.1.0svn.
Hi Evan, What you're seeing is the result of each instance of locator belonging to one and only one axis (namely months.axis), and every time you call ax.xaxis_major_locator, you're moving it to the newest subplot. Just move the 'months = ...' line inside the for-loop, and you'll be all set. best, -- Paul Ivanov 314 address only used for lists, off-list direct email at: http://pirsquared.org | GPG/PGP key id: 0x0F3E28F7
signature.asc
Description: Digital signature
------------------------------------------------------------------------------ Colocation vs. Managed Hosting A question and answer guide to determining the best fit for your organization - today and in the future. http://p.sf.net/sfu/internap-sfd2d
_______________________________________________ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users