Avoid overlapping yticks, controlling Placement of yticks
7 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Tor Aarskog
am 16 Jun. 2020
Kommentiert: DGM
am 23 Dez. 2021
Hello. Im trying to control the placement on the yticks seen in the figure below. I need to have a large fontsize as it should be visble in a report. Is there anyway of dragging the ytick dates, with a line showing its designation. Alternativly, increase the distance between to yticks ?
Thank you in advance.
1 Kommentar
Michael Soskind
am 16 Jun. 2020
Hi Tor. I would advise taking a look at yticks and yticklabels. yticks should allow you to set arbitrarily spaced values, and yticklabels should enable arbitrarily annotated labels. I would advise to make yticklabels the desired labels as you show in the figure, while using any spacing you like (possibly linear spacing) for yticks.
Akzeptierte Antwort
Tor Aarskog
am 16 Jun. 2020
1 Kommentar
DGM
am 23 Dez. 2021
For what it's worth, this answer solves the problem by way of color-coded annotations instead of ticklabels. The color-coding helps with clarity for adjacent lines.
That said, dealing with annotation objects can be quite convoluted and frustrating, so I don't fault anyone for avoiding this suggestion. It looks nice, though.
Weitere 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!