Thanks for the report. It seems that the clipping rectangles were applied additively, rather than being set and removed for each axes.
This is now fixed in SVN. Mike Nathaniel Smith wrote: > I ran into a very curious bug tonight, where if I > -- had multiple axes in a figure > -- and they had axison=False > -- and there was a patch or line in each axes > -- and there was an image in each axes > Then the image is not rendered (or, after some fiddling with how the > subplots overlap, is sometimes partially rendered). > > It took a few hours to isolate :-(. > > I tried the GTKCairo and GTKAgg backends; the Cairo backend shows the > bug, while the Agg backend renders it correctly. > > This is with matplotlib 0.98.5.2, running on Linux x86-64. > > Minimal code to reproduce the bug is: > -------- > from matplotlib import patches, pyplot > def bug(): > f = pyplot.figure() > a1 = f.add_axes([0, 0, 0.4, 0.9]) > a2 = f.add_axes([0.5, 0, 0.4, 0.9]) > a3 = f.add_axes([0.2, 0.2, 0.4, 0.9]) > for a in [a1, a2, a3]: > # This shows up in axis 1, but not axis 2, and only partially in axis > 3: > a.imshow(np.arange(100).reshape(10, 10), > extent=(-1, 1, 1, -1)) > # If you comment out either of these lines, then it works properly: > a.axison = False > a.plot([0, 0], [1, 1]) > pyplot.draw() > ------- > > Renders with agg and cairo are attached for comparison. Note that in > the cairo rendering, axes 1 is drawn correctly, axes 2 is not drawn at > all, and the only part of axes 3 that is drawn is that part that > overlaps axes 2. > > -- Nathaniel > > > ------------------------------------------------------------------------ > > > ------------------------------------------------------------------------ > > ------------------------------------------------------------------------ > > ------------------------------------------------------------------------------ > Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are > powering Web 2.0 with engaging, cross-platform capabilities. Quickly and > easily build your RIAs with Flex Builder, the Eclipse(TM)based development > software that enables intelligent coding and step-through debugging. > Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com > ------------------------------------------------------------------------ > > _______________________________________________ > Matplotlib-devel mailing list > Matplotlib-devel@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/matplotlib-devel > -- Michael Droettboom Science Software Branch Operations and Engineering Division Space Telescope Science Institute Operated by AURA for NASA ------------------------------------------------------------------------------ Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are powering Web 2.0 with engaging, cross-platform capabilities. Quickly and easily build your RIAs with Flex Builder, the Eclipse(TM)based development software that enables intelligent coding and step-through debugging. Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com _______________________________________________ Matplotlib-devel mailing list Matplotlib-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-devel