From: Mark B. <ma...@gm...> - 2005-10-14 20:59:34
|
Hello all - I finally found time to fix the axis('scaled') feature. It is now consistent when zooming, as requested. In essence, it works the same as axis('equal'), but fixes the lower-left-hand corner rather than the center of the subplot. When using axis('scaled') the _autoscaleon is set to False, so that axis limits will be fixed when features are added to the figure. You can overwrite this by setting it the regular way (also works for axis('equal')) ax.set_autoscale_on(False). My last modification is a prototype implementation of zooming when two axes are linked. The idea behind this is that when an axis is 'equal' or 'scaled' and another axis is linked to this axis, that when you are zooming and changing the size of the subplot, then the size of the linkes axis should change accordingly. I use this when I am contouring 2D horizontal data and have a vertical cross-section linked to the x-axis of the horizontal plot. When I zoom in on the horizontal plot, the length of the linked axis now gets changes too! Works great, actually, but has been implemented for linked x-axis only for now. It works when zooming in the horizontal data (which has axis 'equal'), but not yet when zooming in the linked vertical cross-section. Still working on it. Anyway, I modified 3 files, which I submitted on the patches page. If anybody is interested, download these and let me know what you think. I presume they'll get implemented in CVS when John or others find the time to do so. Mark |