How can I specify the number and spacing between minor tick marks in MATLAB and maintain it even when zooming?

3 次查看(过去 30 天)
I would like to specify the number and spacing of minor tick marks displayed, and maintain this spacing and display even when I zoom in and out.

采纳的回答

MathWorks Support Team
The ability to control the number and spacing of minor ticks and maintain it while zooming is not directly available in MATLAB.
To workaround this issue, you can create your own minor tick marks and use the ACTIONPOSTCALLBACK of the ZOOM function in order to keep the ticks scalable when zooming in and out of the axes.
As an example, refer to the attached MATLAB code file: tickZoom.m. Note that the attached file is just an example to get started and is not qualified or tested with different versions of MATLAB.

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Data Exploration 的更多信息

产品


版本

R2010a

Community Treasure Hunt

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

Start Hunting!

Translated by