Re: [Matplotlib-users] axes.get_position() inaccurate until after savefig()?

2015-02-19 Thread gdm
Ok, axes.apply_aspect() seems to work. The other obvious kluge I had found was to save the figure twice, once before and once after I accessed the axes position. It seems the more elegant solution might be to use a somewhat-complicated transform, so that that the two endpoints of a Line2d segme

[Matplotlib-users] axes.get_position() inaccurate until after savefig()?

2015-02-18 Thread gdm
New matplotlib user here. Sometimes I like to make figures with multiple axes, and have lines that cross multiple axes. I've run in to problems with coordinates when doing this. One such problem is that axes.get_position() seems to return incorrect coordinates for an axes with a fixed aspect rat