|
From: darkside <in....@gm...> - 2012-08-20 13:50:55
|
Thank you for your help, but I have already read this link. I am using zoomed_inset_axes, but the default position overlaps the yticks and the parent axe ticks, so I am trying: axins = zoomed_inset_axes(ax, 3,bbox_to_anchor(0.5,1),bbox_transform=ax.figure.transFigure, loc=2) but it doesn't work. I have also tried: box = axins.get_position() axins.set_position([box.x0+0.5, box.y0,box.width, box.height]) and the position is changed (doing a print I check the differences), but not in the plot. I guess I am doing something wrong, but I can't tell. Any help would be really useful. Cheers! Illa 2012/8/9 Benjamin Root <ben...@ou...> > > On Wed, Aug 8, 2012 at 7:03 AM, darkside <in....@gm...>wrote: > >> >> >> ---------- Forwarded message ---------- >> From: darkside <in....@gm...> >> Date: 2012/8/2 >> Subject: Re: [Matplotlib-users] zoomed in detail box >> To: Jae-Joon Lee <lee...@gm...> >> >> >> Hi everyone! >> >> I'm also trying to do a detailed zoomed area of my plot, but I can't >> manage to put the box in the position I want, bbox_to_anchor didn't work in >> my case: >> >> axins = >> zoomed_inset_axes(ax,3,loc=2,bbox_to_anchor=(0,0,0.5,0.5),bbox_transform=ax.transAxes) >> >> This bbox_to_anchor tuple is just an example. I only want to move the >> zoomed box a little to the right, since the ticklabels overlap. >> >> Any idea? >> >> I really appreciate your help! >> >> > Is this what you are looking for? > > > http://matplotlib.sourceforge.net/mpl_toolkits/axes_grid/users/overview.html#insetlocator > > Cheers! > Ben Root > > |