I need to label the ticks on the x axis on a plot with another number than the real x number on the axis.
If those labels are negative numbers that start with a minus, a sort of syntax error is returned.
In particular, I was trying the following:
and it returns an error:
If I replace the minus character (U+002D) with another character which is visually similar to minus, for example with figure dash (U+2012), it works correctly:
What's the problem with the minus character?
If those labels are negative numbers that start with a minus, a sort of syntax error is returned.
In particular, I was trying the following:
Code:
estat trendplots, nocommonlegend title("H${hp}") xtitle("Year") ytitle("Similarity") xlabel(0 "-5" 1 "-4" 2 "-3" 3 "-2" 4 "-1" 5 "0" 6 "1" 7 "2" 8 "3" 9 "4" 10 "5", angle(90))
Code:
5" 1 " invalid name r(198);
Code:
. estat trendplots, nocommonlegend title("H${hp}") xtitle("Year") ytitle("Similarity") xlabel(0 "‒5" 1 "‒4" 2 "‒3" 3 "‒2" 4 "‒1" 5 "0" 6 "1" 7 "2" 8 "3" 9 "4" 10 "5", angle(90))
Comment