Dear all,

I think this is quite easy but I searched the internet and mailing list and
not able to find an answer.
ax2 is an inset axes within the "ax" axes in figure "fig", which I make
following here
http://matplotlib.sourceforge.net/examples/pylab_examples/axes_demo.html

but now my problem is that I cannot fix the ax2 the exact position I want,
it seems that draw() command change this:


In [352]:

ax2.set_position([0.125,0.63,0.25,0.25])

ax2.set_position([0.125,0.63,0.25,0.25])

In [353]:

ax2.get_position()

ax2.get_position()

Out[353]:

Bbox(array([[ 0.125,  0.63 ],
       [ 0.375,  0.88 ]]))

In [354]:

draw()

draw()

In [355]:

ax2.get_position()

ax2.get_position()

Out[355]:

Bbox(array([[ 0.15625,  0.63   ],
       [ 0.34375,  0.88   ]]))


could anyone give any hints? thanks!


Chao


-- 
***********************************************************************************
Chao YUE
Laboratoire des Sciences du Climat et de l'Environnement (LSCE-IPSL)
UMR 1572 CEA-CNRS-UVSQ
Batiment 712 - Pe 119
91191 GIF Sur YVETTE Cedex
Tel: (33) 01 69 08 29 02; Fax:01.69.08.77.16
************************************************************************************
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

Reply via email to