Is it possible to lable xminortick

4 vues (au cours des 30 derniers jours)
TingTing
TingTing le 11 Avr 2016
Commenté : Walter Roberson le 11 Avr 2016
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?

Réponses (1)

Jan
Jan le 11 Avr 2016
It is the nature of "minor ticks" to have no labels. What about using standard ticks for all values?
  2 commentaires
TingTing
TingTing le 11 Avr 2016
really? I just want to have 24 hours for a day... How can I use standard ticks?
Walter Roberson
Walter Roberson le 11 Avr 2016
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.)

Connectez-vous pour commenter.

Community Treasure Hunt

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

Start Hunting!

Translated by