addaxis() axes are not reset by figure menu 'Tools' 'Reset View'

1 view (last 30 days)
I am using addaxis() with Tobias' additions for proper axis scaling during zoom/pan (terrific stuff, works well). After multiple zoom/pans I can right-click and select 'Reset to Original View', and that works exactly as expected. HOWEVER, if, instead of the context menu, I use 'Tools' 'Reset View' then only the plotted data and the original X and Y axes (which were created by the initial plot() function) are reset to their correct value. The axes that were created by addaxis() are unchanged, and further attempts via the context menu or 'Tools' 'Reset View' will not reset them to their initial value. It appears that from the moment 'Tools' 'Reset View' is triggered, the existing values of all the added axes is treated as their initial value i.e. if I zoom/pan then they are rescaled accordingly, but the context menu will only reset them to the intermediate value, or if I use 'Tools' 'Reset View' again then the existing value becomes yet a new 'initial value', etc, etc...
I am using R2010b. Has anyone else noticed this problem?

Answers (0)

Products

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!