Use of SizeChangedFcn for altering labels

2 views (last 30 days)
I have created a function (attached fixticks.m) which I often find more convenient than using xtickformat as it is more dynamic in it's behaviour whe zooming in/out.
The use of the zoom properties 'ActionPreCallback' and 'ActionPostCallback' I find very neet in order to keep the automatic ticks when zooming in and out and reapplying the automatic formatting.
BUT - when resizing the figure I often realize that I have to manually zoom in / zoom out before the ticks are correct.
Is there a way to handle this using the SizeChangedFcn or some other property/callback.
It is not my intent to use the functions in a gui or app.

Answers (0)

Categories

Find more on Migrate GUIDE Apps in Help Center and File Exchange

Products


Release

R2020a

Community Treasure Hunt

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

Start Hunting!