- Add ticks at six-month intervals and label the mid-year ones with empty labels for the beginning of year locations, or
- Don't use tick labels at all but write the months text with text at the six-month x-axis locations.
Issue with xlabel positioning
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
Hello all, I am trying to change the location of the xlabel. In the attached figure the labels appear at the start of the month, however I'd like to keep the ticks where they are but move the labels to the center. Hope this makes sense, any help would be much appreciated![Fig.1.jpg](https://www.mathworks.com/matlabcentral/answers/uploaded_files/198395/Fig.1.jpeg)
![Fig.1.jpg](https://www.mathworks.com/matlabcentral/answers/uploaded_files/198395/Fig.1.jpeg)
2 Kommentare
dpb
am 6 Dez. 2018
labels are associated with ticks so you have two choices:
ADDENDUM
Oh, there's a third that comes to mind -- add a second x-axis on top of the existing that has ticks at the mid-year position and use labels on it and clear the first.
Antworten (0)
Siehe auch
Kategorien
Mehr zu Axis Labels finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!