offsetTicks replaces the tick labels with values representing the offset from the first value, i.e., "100, 101, 102, 103, 104" is replaced by "100, +1, +2, +3, +4." This function adds a listener to the axis to maintain the formatting when the figure is redrawn.
Robert (2021). offsetTicks (https://github.com/raaperrotta/offsetTicks), GitHub. Retrieved .
Inspired by: ticklabelformat - set a dynamic format of axes tick labels
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Create scripts with code, output, and formatted text in a single executable document.