Matlab 2018b auto set ticks
If you're looking for a broader method of reverting to older behavior you can set the default label rotation mode to manual at the start of a function that produces multiple plots and then revert to the factory default rotation mode at the end of the file (consider using onCleanup). Auto-rotation can also be turned off by setting the X|Y|ZTickLabelRotationMode axis property to manual but it's important to also hold the axis properties so that the rotation mode does not revert to the default value, auto. When the tick label rotation angle is manually set from the X|Y|ZTickLabelRotation property of axes or by using xtickangle | ytickangle | ztickangle, auto-rotation is turned off. The auto-rotation feature updates the label angles as the axes change programmatically or during user interaction.Īuto-rotation mode is on by default for each X|Y|Z axis. MATLAB auto-rotates the labels when needed.ĭemo: Changes to axis view angle and rotation These 9 axes vary by the number of x-ticks and length of x-tick-labels.
Many properties and combinations of properties can cause tick labels to overlap if they are not rotated.ĭemo: varying tick density and length of tick labels The new auto-rotation feature removes the burden of detecting the need to rotate manually-set labels and eliminates the need to manually rotate them. In custom visualization functions, the tick label density or tick label lengths may be variable and unknown. Starting in MATLAB R2021a axis tick labels will auto-rotate to avoid overlap when the user manually specifies ticks or tick labels ( release notes ).