Uh oh!
There was an error while loading. Please reload this page.
Rotate labels - #54
Conversation
trisyoungs
left a comment
There was a problem hiding this comment.
This is definitely heading down the right lines, but one crucial thing is missing - the rotation of the label isn't accounted for in the bounding cuboids, which means that the layout is generated incorrectly. To illustrate this, run the basic example, set the Y-axis title to "Vertical", and put in a long title. It's clear that the graph area is reacting to an increase in only the horizontal (un-rotated) size of the label.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
jswift-stfc
commented
May 21, 2022
Oops! Yes you are right - I hadn't thought about that. |
jswift-stfc
commented
May 23, 2022
Regarding this, at which point do you think the rotation should be performed? In reference to the |
trisyoungs
commented
May 23, 2022
I think I'd be tempted to add another argument to the second |
…achieve alignment about Z.
Co-authored-by: Tristan Youngs <tristan.youngs@stfc.ac.uk>
…l calculated incorrectly).
f192f1e to
60f09ccCompare
Relatively small PR that enables a
TextEntityto be rotated. This is aimed in particular at Axis Titles.TextAlignmentenum for defining rotation of text (currently horizontal / vertical).TextEntityclass.AxisEntityclass.Current issues:
Closes#13.