Colleagues,
I would like to pass the list of installed styles, which is returned via the graph query, schemes to a local macro. I'm expecting to use in the code below
Presently, I simply typed available styles to the listschemes local macro. Naturally, if I'm going to download new schemes I will have to add them to the macro, I would rather avoid doing that and source the style names automatically. My ambition is to produce a series of charts illustrating what can be quickly achieved with use of the available colour schemes, so people can pick what they want to see in a report.
I would like to pass the list of installed styles, which is returned via the graph query, schemes to a local macro. I'm expecting to use in the code below
Code:
// Provide scheme list local listschemes mrc s2color s2mono s2manual s2gmanual s2gcolor s1color /// s1mono s1rcolor s1manual sj economist s2color8 burd burd10 /// burd11 burd3 burd4 burd5 burd6 burd7 burd8 burd9 lean1 /// lean2 rbn1mono rbn2mono rbn3mono rbn4mono sol tufte vg_blue /// vg_brite vg_lgndc vg_lgndm vg_outc vg_outm vg_palec /// vg_palem vg_past vg_rose vg_s1c vg_s1m vg_s2c vg_s2m /// vg_samec vg_samem vg_teal // Loop through the schemes foreach lscheme of local listschemes { xtline (...) chart routine (...) scheme(`lscheme') /// t2title("Used colour scheme: {bf:`lscheme'}", size(medsmall) box) /// name(scheme_`lscheme', replace) * Save graph graph save scheme_`lscheme', replace graph export scheme_`lscheme'.tif, replace }
Comment