フィルターのクリア

Is it possible to lable xminortick

1 回表示 (過去 30 日間)
TingTing
TingTing 2016 年 4 月 11 日
コメント済み: Walter Roberson 2016 年 4 月 11 日
I am plotting some data and on the x-axis, it is the hours of the days. I would like to have major tick for the days and the minor tick for the hours. I was able to xminortick, but on those ticks I can not do any labelling. Any tips?

回答 (1 件)

Jan
Jan 2016 年 4 月 11 日
It is the nature of "minor ticks" to have no labels. What about using standard ticks for all values?
  2 件のコメント
TingTing
TingTing 2016 年 4 月 11 日
really? I just want to have 24 hours for a day... How can I use standard ticks?
Walter Roberson
Walter Roberson 2016 年 4 月 11 日
Yes, really. If you want to label minor ticks then you need to text() the labels into place yourself (or find a graphics routine that will do it for you.)

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

カテゴリ

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

Community Treasure Hunt

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

Start Hunting!

Translated by