I'm trying to make a big plot with smaller insets. I would like to specify the
new axis rectangle in terms of data coordinates from the original plot. This
page
mentions an .xy_tup() method of Transform objects:
http://www.scipy.org/Cookbook/Matplotlib/Transformations?highlight=(xy_tup)
...but I cannot seem to find it:
from pylab import *
t = gca().transData
In [332]: t
Out[332]:
CompositeGenericTransform(TransformWrapper(BlendedAffine2D(
IdentityTransform(),IdentityTransform())), CompositeAffine2D(
BboxTransformFrom(TransformedBbox(Bbox(array(
[[ 0., 0.], [ 1., 1.]])), TransformWrapper(BlendedAffine2D(
IdentityTransform(),IdentityTransform())))),
BboxTransformTo(TransformedBbox(Bbox(array([[ 0.125, 0.1 ],
[ 0.9 , 0.9 ]])), BboxTransformTo(TransformedBbox(Bbox(
array([[ 0., 0.], [ 8., 6.]])), Affine2D(array([[ 80., 0., 0.],
[ 0., 80., 0.],
[ 0., 0., 1.]]))))))))
In [333]: t.xy_tup
AttributeError: 'CompositeGenericTransform' object has no attribute 'xy_tup'
Has this feature been (re)moved, or am I missing something?
Thanking you in advance,
Jon Olav