Re: [Matplotlib-users] Adding-custom-axes-within-a-subplot redux

2009-10-26 Thread Jae-Joon Lee
On Sun, Oct 25, 2009 at 7:30 PM, George Nurser wrote: > it seems a pity that > fig.add_axes can't accept the transform directly. While this is certainly possible, but it is a bit tricky to get it correct due to the underlying design of the matplotlib. On the other hand, I think it solves some pro

[Matplotlib-users] Adding-custom-axes-within-a-subplot redux

2009-10-25 Thread George Nurser
Hi, The excellent transformations tutorial http://matplotlib.sourceforge.net/users/transforms_tutorial.html explained exactly what I needed to do to include inserts in my figures. Furthermore, it suggested to me that I should be able to do without some very ugly code I had written to convert the bo

Re: [Matplotlib-users] Adding custom axes within a subplot

2009-02-23 Thread Johann Rohwer
Hi JJ On Monday, 23 February 2009, Jae-Joon Lee wrote: > Here is my modification. > > Bbox = matplotlib.transforms.Bbox.from_bounds(.4, .1, .5, .3) > trans = ax.transAxes + fig.transFigure.inverted() > l, b, w, h = matplotlib.transforms.TransformedBbox(Bbox, > trans).bounds > axin

Re: [Matplotlib-users] Adding custom axes within a subplot

2009-02-23 Thread Jae-Joon Lee
Here is my modification. Bbox = matplotlib.transforms.Bbox.from_bounds(.4, .1, .5, .3) trans = ax.transAxes + fig.transFigure.inverted() l, b, w, h = matplotlib.transforms.TransformedBbox(Bbox, trans).bounds axins = fig.add_axes([l, b, w, h]) On Mon, Feb 23, 2009 at 2:49 PM, Joha

Re: [Matplotlib-users] Adding custom axes within a subplot

2009-02-23 Thread Johann Rohwer
Johann Rohwer wrote: I'm trying to insert a custom set of axes within a subplot, much like the axes_demo.py. Only difference is, now I want an inset graph inside each of a number of subplots. Using ASCII art, much like the following: |---| | | |

[Matplotlib-users] Adding custom axes within a subplot

2009-02-23 Thread Johann Rohwer
I'm trying to insert a custom set of axes within a subplot, much like the axes_demo.py. Only difference is, now I want an inset graph inside each of a number of subplots. Using ASCII art, much like the following: |---| | | | | |