I often use the height() option in ytitle() in order to add space between the text and the labels. However, I'm adding an alternate axis on the right side and I'm having trouble doing something similar.
Consider the following code. (The height is exaggerated and the box option is added just to make it clearer.)
I thought the obvious thing to do was push the text to the "bottom" of the box by adding the align() option:
However, this option does not return an error yet does not change the plot at all. If there isn't a way to move the text within the box, maybe there's a way to push the box itself away from the labels?
I'd very much appreciate any advice. Thank you.
Consider the following code. (The height is exaggerated and the box option is added just to make it clearer.)
Code:
sysuse auto scatter price rep78 , yti("Dollars", height(10) box) || scatter mpg rep78 , yaxis(2) yti("MPG", height(10) axis(2) box)
Code:
scatter price rep78 , yti("Dollars", height(10) box) || scatter mpg rep78 , yaxis(2) yti("MPG", height(10) axis(2) box align(bottom))
I'd very much appreciate any advice. Thank you.
Comment