|
From: Adam D. <ada...@gm...> - 2011-09-04 22:08:32
|
Eric, Thank you for the reply. Yes, eliminating sharex and sharey does solve that problem. But then my plot axes (which are scatter plots of each orthogonal view of a vector space) are not correspondingly scaled. Is there a way to: - force scaling across specified axes without using sharex/y (and without disrupting imshow)? - have subplots within subplots so that I can have the plot() calls in one set of axes within a subplot (using sharex/y) and the imshow() calls in another subplot? -Adam On Sun, Sep 4, 2011 at 10:34 PM, Eric Firing <ef...@ha...> wrote: > On 09/04/2011 11:12 AM, Adam Davis wrote: > > I have a figure with a number of plots that analyze a source image. I > > wish to show the plots along side the image. Unfortunately whichever > > method I call last clobbers (leaves blank axes) for the previously > > called method. > > > > To illustrate: > > > > fig, axs = pylab.subplots(10, 4, sharex=True, sharey=True) > > > > for i in range(10): > > > > axs[i,0].plot(some_data) > > axs[i,1].plot(some_data) > > axs[i,2].plot(some_data) > > > > axs[i,3].imshow(some_image) > > > > #===== > > > > The above shows only the images in the fourth column. If, however, I > > call imshow() first, followed by the call to plot(), then only the plot > > axes appear and the images disappear. > > > > Is there a way to both plot and display images in the same figure? > > I suspect the problem here is your sharex and sharey kwargs. Try > leaving them out. > > Eric > > > > > -Adam > > > ------------------------------------------------------------------------------ > Special Offer -- Download ArcSight Logger for FREE! > Finally, a world-class log management solution at an even better > price-free! And you'll get a free "Love Thy Logs" t-shirt when you > download Logger. Secure your free ArcSight Logger TODAY! > http://p.sf.net/sfu/arcsisghtdev2dev > _______________________________________________ > Matplotlib-users mailing list > Mat...@li... > https://lists.sourceforge.net/lists/listinfo/matplotlib-users > |