On Sun, Oct 25, 2009 at 7:30 PM, George Nurser gnur...@googlemail.com 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
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
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:
|---|
| |
| |
|
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:
|---|
| |
|
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,
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
axins =