Dear Stata users,
I was puzzled by this trivial difference of format(%fmt) suboption between graph twoway and graph bar. In the latter, there's a format(%fmt) suboption in blabel_option. The format(%fmt) specifies the display format to be used to format the height value. On the contrary, there's no format(%fmt) suboption in mlabel_option of graph twoway plots. I know that when we specify marker variables by using mlabel(varlist), the variables can either numeric or string type. As to the string marker variable, there's certainly no need to specifies the display format. However, when we specify a numeric variable as marker label, would't it be more convenient to allow a format(%fmt) suboption?
I was puzzled by this trivial difference of format(%fmt) suboption between graph twoway and graph bar. In the latter, there's a format(%fmt) suboption in blabel_option. The format(%fmt) specifies the display format to be used to format the height value. On the contrary, there's no format(%fmt) suboption in mlabel_option of graph twoway plots. I know that when we specify marker variables by using mlabel(varlist), the variables can either numeric or string type. As to the string marker variable, there's certainly no need to specifies the display format. However, when we specify a numeric variable as marker label, would't it be more convenient to allow a format(%fmt) suboption?
Code:
sysuse auto graph twoway connected price weight, sort mlabel(price) graph bar price, over(foreign) blabel(bar, format(%9.2f))
Comment