XTick Visibility off with XTickLabel showing

9 ビュー (過去 30 日間)
curoi
curoi 2013 年 5 月 1 日
Is there a way to specify the XTick property without showing the actual tick so that I can have labels at the XTick locations on the axeis?
I have several axes that are overlayed so that I can get the TickDir for the x axis of axes1 on the outside but I cannot figure out how to keep the XTickLabel on the other axes, axes2, while setting
get( axes2, 'XTick', [] );
This just turns off the XTick altogether. If there is no way to do this, then maybe I can set the labels using text and a for loop?
Thanks.

採用された回答

Matt Kindig
Matt Kindig 2013 年 5 月 1 日
set(axes2, 'TickLength', [0 0]);

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeLabels and Annotations についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by