SourceForge logo
SourceForge logo
Menu

matplotlib-users

From: Yury V. Z. <yu...@sh...> - 2014年05月19日 12:08:18
Hi,
I'm trying to make a plot of an image grid, however, I'd like to have
additional axes on top, to the left and to the right of _some_ images.
I thought that AxesGrid toolkit is exactly what I need, because
otherwise I'm having lots of trouble to force the same size and aspect
ratio of all images (e.g. with GridSpec).
Unfortunately, whereas simple ImageGrid looks great, when I start adding
axes, it breaks down and basically it looks like it's not adding new
axes to individual image axes, but to the whole ImageGrid:
http://i.imgur.com/X76Z9ji.png (left: w/o axes, right: broken state)
The reproducer is as follows:
im = np.arange(1000000)
im.shape = 1000, 1000
f = pyl.figure()
grid = ImageGrid(f, 111,
 nrows_ncols=(2, 3),
 axes_pad = 1,
 )
for ax in grid:
 ax.matshow(im)
divider = make_axes_locatable(grid[4])
cax = divider.append_axes("top", size="5%", pad=0.05)
pyl.show()
I would greatly appreciate any advice on how to achieve what I'm looking
for with matplotlib...
Thanks,
-- 
Sincerely yours,
Yury V. Zaytsev
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.
Thanks for helping keep SourceForge clean.
X





Briefly describe the problem (required):
Upload screenshot of ad (required):
Select a file, or drag & drop file here.
Screenshot instructions:

Click URL instructions:
Right-click on the ad, choose "Copy Link", then paste here →
(This may not be possible with some types of ads)

More information about our ad policies

Ad destination/click URL:

AltStyle によって変換されたページ (->オリジナル) /