필터 지우기
필터 지우기

How to set the length of minortick? The minortick seems to change with the length setting of the tick.

조회 수: 16 (최근 30일)
Two values can be set for "ticklength" in the edit box. For example "0.05,0.1". The former indicates the length of the main tick, and what does the latter indicate? How to customize the length of minortick?

채택된 답변

Dyuman Joshi
Dyuman Joshi 2024년 2월 20일
"... what does the latter indicate?"
Tick mark length, specified as a two-element vector of the form [2Dlength 3Dlength]. The first element is the tick mark length in 2-D views and the second element is the tick mark length in 3-D views. Specify the values in units normalized relative to the longest of the visible x-axis, y-axis, or z-axis lines.
"How to customize the length of minortick?"
There is no direct control over tick-length of the minor ticks. Though, it is proportional to the length of the major tick.
  댓글 수: 2
Kelin Chen
Kelin Chen 2024년 2월 20일
Thanks for your reply, it's clear to me.
How to adjust the ratio of maintick to minortick? It seems to be fixed to a certain value.
Dyuman Joshi
Dyuman Joshi 2024년 2월 20일
Yes, the ratio is fixed (seems to be 1:2), and can not be adjusted.
You could try using annotation or text or line to make minor ticks of custom length but that might not be satisfactory.

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Axis Labels에 대해 자세히 알아보기

태그

제품


릴리스

R2023b

Community Treasure Hunt

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

Start Hunting!

Translated by