フィルターのクリア

Customizing the axis on a plot - Mainly the tick marks

38 ビュー (過去 30 日間)
Alice K
Alice K 2022 年 8 月 11 日
編集済み: Alice K 2022 年 8 月 11 日
Hi, I am recreating some graphs but I am stuggling with the axis.
This is what I have:
This is what I need:
How would I go about doing this, mainly the different sized tick marks.
Thank You

採用された回答

Walter Roberson
Walter Roberson 2022 年 8 月 11 日
ax = gca;
xticks(ax, 0:100:600);
xlim(ax, [0 600])
ax.XMinorTick = 'on';
yticks(0:10:40);
ylim([0 40])
ax.YMinorTick = 'on';
The length of the major ticks can be controlled with the TickLength property.
Note: there is no control over the interval between minor ticks.
  1 件のコメント
Alice K
Alice K 2022 年 8 月 11 日
編集済み: Alice K 2022 年 8 月 11 日
Thank You! It works

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeGrid Lines, Tick Values, and Labels についてさらに検索

タグ

製品


リリース

R2021b

Community Treasure Hunt

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

Start Hunting!

Translated by