Hello all,
I am using COEFPLOT and trying to add a line break to the marker label. Specifically, at each marker, I am adding a text like `coef (se)' with a line break between coef and (se). It works great on the graph window and also in the exported PNG, but somehow the line break disappears in the exported PDF. The following code replicates the issue (at least in my environment). Any idea how to make the line break work in the PDF just like it does in PNG?

reg_price.pdf
I am using COEFPLOT and trying to add a line break to the marker label. Specifically, at each marker, I am adding a text like `coef (se)' with a line break between coef and (se). It works great on the graph window and also in the exported PNG, but somehow the line break disappears in the exported PDF. The following code replicates the issue (at least in my environment). Any idea how to make the line break work in the PDF just like it does in PNG?
Code:
. sysuse auto (1978 Automobile Data) . reg price Source | SS df MS Number of obs = 74 -------------+---------------------------------- F(0, 73) = 0.00 Model | 0 0 . Prob > F = . Residual | 635065396 73 8699525.97 R-squared = 0.0000 -------------+---------------------------------- Adj R-squared = 0.0000 Total | 635065396 73 8699525.97 Root MSE = 2949.5 ------------------------------------------------------------------------------ price | Coef. Std. Err. t P>|t| [95% Conf. Interval] -------------+---------------------------------------------------------------- _cons | 6165.257 342.8719 17.98 0.000 5481.914 6848.6 ------------------------------------------------------------------------------ . coefplot, vert mlabel(string(@b,"%9.2f") + char(13) + char(10) + "(" + string(@se,"%9.2f") + ")") . gr export "reg_price.png", replace (file reg_price.png written in PNG format) . gr export "reg_price.pdf", replace (file reg_price.pdf written in PDF format)
reg_price.pdf
Comment