如何获取当前方案的信息?

How to access information on the current scheme?

有没有办法在 Stata 中访问有关当前方案的信息?

例如,我想访问当前主题的颜色 p3(forest_green 如果用户主题是默认的 scheme-s2color.scheme)。

视情况而定,我认为您可以使用 "scheme p3" 作为 colorstyle 或使用 gr_setscheme.ado:

* Get current scheme object
gr_setscheme
* Describe object to see what's "inside"
classutil des .__SCHEME
classutil des .__SCHEME.color
* Access specific color as a local macro, here displayed
di "`.__SCHEME.color.p3'"

此致