I wanted to produce same-size/same-format figures but for some reason, a random space between the ytitle and the yaxis would appear for some of the figures.
Here is a minimal example of what is happening:
Code:
* Example generated by -dataex-. To install: ssc install dataex clear input float(t min max) -4 -.2695471 .3119124 -3 -.4409175 .27488267 -2 -.3271408 .21396995 -1 -.16295755 .17221946 0 0 0 1 -.18535984 .15080297 2 -.3387621 .22677016 3 -.417913 .28941667 4 -.51065946 .3857577 end
Code:
graph twoway (rcap min max t)
Code:
gen pos_min = (-1)*min graph twoway (rcap pos_min max t)
It seems that when the min variable is negative, some random space between the ytitle and the yaxis appears. If I use the positive values of min (i.e., pos_min), the same space disappears. What is happening here? I would like to get rid of this random space and produce figures with the same format and size.
Thank you.
0 Response to graph twoway rcap is misbehaving: a random space appears between ytitle and yaxis
Post a Comment