├── README.md ├── comparison.do ├── figs ├── fig1a.png ├── fig1b.png ├── fig1c.png ├── fig2a.png ├── fig2b.png ├── fig2c.png ├── fig3a.png ├── fig3b.png ├── fig3c.png ├── fig4a.png ├── fig4b.png ├── fig4c.png ├── fig5a.png ├── fig5b.png └── fig5c.png ├── scheme-modern.pkg ├── scheme-modern.scheme ├── scheme-modern_dark.scheme └── stata.toc /README.md: -------------------------------------------------------------------------------- 1 | stata-scheme-modern 2 | ================================= 3 | 4 | [Overview](#overview) 5 | | [Installation](#installation) 6 | | [Screenshots](#screenshots) 7 | | [Acknowledgements](#acknowledgements) 8 | 9 | Better Stata graphical schemes 10 | 11 | `version 1.0 1jul2019` 12 | 13 | 14 | Overview 15 | --------------------------------- 16 | 17 | This package provides graphical themes (schemes) for Stata that are intended to imitate defaults from popular plotting libraries in other languages (e.g. matplotlib). You can check out some pictures of what these schemes look like in the [Screenshots](#screenshots) section below. As always, scheme settings (e.g. legend placement, color options) can always be overridden. 18 | 19 | 20 | Installation 21 | --------------------------------- 22 | 23 | Installation is straightforward: 24 | 25 | 1. Install this package directly from this GitHub repo by typing the following command in a Stata prompt: 26 | 27 | ```stata 28 | net install scheme-modern, from("https://raw.githubusercontent.com/mdroste/stata-scheme-modern/master/") 29 | ``` 30 | 31 | 2. To use the light-colored theme, simply type: 32 | ```stata 33 | set scheme modern, perm 34 | ``` 35 | 36 | 3. To use the dark-colored theme instead, simply type: 37 | ```stata 38 | set scheme modern_dark, perm 39 | ``` 40 | 41 | 42 | Screenshots 43 | --------------------------------- 44 | 45 | 46 |
47 | 48 | Click for histogram example 49 | 50 | ![scheme-s2color screenshot 1](figs/fig1a.png "Scheme-s2color (default)") 51 | 52 | ![scheme-modern screenshot 1](figs/fig1b.png "Scheme-modern") 53 | 54 | ![scheme-modern_dark screenshot 1](figs/fig1c.png "Scheme-modern_dark") 55 | 56 |
57 |
58 | Click for scatterplot example 59 | 60 | ![scheme-s2color screenshot 2](figs/fig2a.png "Scheme-s2color (default)") 61 | 62 | ![scheme-modern screenshot 2](figs/fig2b.png "Scheme-modern") 63 | 64 | ![scheme-modern_dark screenshot 2](figs/fig2c.png "Scheme-modern_dark") 65 | 66 |
67 |
68 | Click for bar chart example 69 | 70 | ![scheme-s2color screenshot 3](figs/fig3a.png "Scheme-s2color (default)") 71 | 72 | ![scheme-modern screenshot 3](figs/fig3b.png "Scheme-modern") 73 | 74 | ![scheme-modern_dark screenshot 3](figs/fig3c.png "Scheme-modern_dark") 75 | 76 |
77 |
78 | Click for binned scatterplot example 79 | 80 | ![scheme-s2color screenshot 4](figs/fig4a.png "Scheme-s2color (default)") 81 | 82 | ![scheme-modern screenshot 4](figs/fig4b.png "Scheme-modern") 83 | 84 | ![scheme-modern_dark screenshot 4](figs/fig4c.png "Scheme-modern_dark") 85 | 86 |
87 |
88 | Click for line plot example 89 | 90 | ![scheme-s2color screenshot 5](figs/fig5a.png "Scheme-s2color (default)") 91 | 92 | ![scheme-modern screenshot 5](figs/fig5b.png "Scheme-modern") 93 | 94 | ![scheme-modern_dark screenshot 5](figs/fig5c.png "Scheme-modern_dark") 95 | 96 |
97 | 98 | 99 | Acknowledgements 100 | --------------------------------- 101 | 102 | These schemes were built by combining elements from two existing schemes: (1) the leap-slides used by the Opportunity Insights research group from 2015 to present; (2) the [cleanplots](https://www.trentonmize.com/software/cleanplots) scheme produced by Trenton D. Mize. 103 | 104 | Interested users might also like to check out other work; for instance, the [grstyle](https://boris.unibe.ch/117391/1/grstyle-Konstanz-2018.pdf) command by Ben Jann, or [brewscheme](https://github.com/wbuchanan/brewscheme) by William Buchanan. 105 | -------------------------------------------------------------------------------- /comparison.do: -------------------------------------------------------------------------------- 1 | 2 | cd C:\Users\Mike\Documents\Github\stata-modern 3 | cap mkdir figs 4 | 5 | *------------------------------------------------------------------------------- 6 | * Fig 1: Histograms 7 | *------------------------------------------------------------------------------- 8 | 9 | sysuse nlsw88, clear 10 | 11 | set scheme s2color 12 | histogram wage, title("Histogram") subtitle("Default scheme") name(fig1a, replace) 13 | graph export "figs/fig1a.png", replace 14 | set scheme modern 15 | histogram wage, title("Histogram") subtitle("Modern color scheme") name(fig1b, replace) 16 | graph export "figs/fig1b.png", replace 17 | set scheme modern_dark 18 | histogram wage, title("Histogram") subtitle("Modern_dark color scheme") name(fig1c, replace) 19 | graph export "figs/fig1c.png", replace 20 | 21 | *------------------------------------------------------------------------------- 22 | * Fig 2: Scatter plots 23 | *------------------------------------------------------------------------------- 24 | 25 | sysuse nlsw88, clear 26 | 27 | set scheme s2color 28 | scatter wage tenure if union==1, title("Scatterplot") subtitle("Default color scheme") name(fig2a, replace) 29 | graph export "figs/fig2a.png", replace 30 | set scheme modern 31 | scatter wage tenure if union==1, title("Scatterplot") subtitle("Modern color scheme") name(fig2b, replace) 32 | graph export "figs/fig2b.png", replace 33 | set scheme modern_dark 34 | scatter wage tenure if union==1, title("Scatterplot") subtitle("Modern_dark color scheme") name(fig2c, replace) 35 | graph export "figs/fig2c.png", replace 36 | 37 | *------------------------------------------------------------------------------- 38 | * Fig 3: Horizontal bar plot 39 | *------------------------------------------------------------------------------- 40 | 41 | sysuse pop2000, clear 42 | replace maletotal = -maletotal/1e+6 43 | replace femtotal = femtotal/1e+6 44 | 45 | set scheme s2color 46 | twoway (bar maletotal agegrp, horizontal xvarlab(Males)) /// 47 | (bar femtotal agegrp, horizontal xvarlab(Females)) /// 48 | , ylabel(1(1)17, angle(horizontal) valuelabel labsize(*.8)) /// 49 | xtitle("Population in millions") ytitle("") /// 50 | xlabel(-10 "10" -7.5 "7.5" -5 "5" -2.5 "2.5" 2.5 5 7.5 10) /// 51 | legend(label(1 Males) label(2 Females)) /// 52 | title("Bar plot") subtitle("Default color scheme") name(fig3a, replace) 53 | graph export "figs/fig3a.png", replace 54 | 55 | set scheme modern 56 | twoway (bar maletotal agegrp, horizontal xvarlab(Males)) /// 57 | (bar femtotal agegrp, horizontal xvarlab(Females)) /// 58 | , ylabel(1(1)17, angle(horizontal) valuelabel labsize(*.8)) /// 59 | xtitle("Population in millions") ytitle("") /// 60 | xlabel(-10 "10" -7.5 "7.5" -5 "5" -2.5 "2.5" 2.5 5 7.5 10) /// 61 | legend(label(1 Males) label(2 Females)) /// 62 | title("Bar plot") subtitle("Default color scheme") name(fig3b, replace) 63 | graph export "figs/fig3b.png", replace 64 | 65 | set scheme modern_dark 66 | twoway (bar maletotal agegrp, horizontal xvarlab(Males)) /// 67 | (bar femtotal agegrp, horizontal xvarlab(Females)) /// 68 | , ylabel(1(1)17, angle(horizontal) valuelabel labsize(*.8)) /// 69 | xtitle("Population in millions") ytitle("") /// 70 | xlabel(-10 "10" -7.5 "7.5" -5 "5" -2.5 "2.5" 2.5 5 7.5 10) /// 71 | legend(label(1 Males) label(2 Females)) /// 72 | title("Bar plot") subtitle("Default color scheme") name(fig3c, replace) 73 | graph export "figs/fig3c.png", replace 74 | 75 | *------------------------------------------------------------------------------- 76 | * Fig 4: Binned scatter plots 77 | *------------------------------------------------------------------------------- 78 | 79 | sysuse nlsw88, clear 80 | 81 | set scheme s2color 82 | binscatter wage tenure, by(union) linetype(connect) title("Binned scatterplot") subtitle("Default color scheme") name(fig4a, replace) 83 | graph export "figs/fig4a.png", replace 84 | set scheme modern 85 | binscatter wage tenure, by(union) linetype(connect) title("Binned scatterplot") subtitle("Modern color scheme") name(fig4b, replace) 86 | graph export "figs/fig4b.png", replace 87 | set scheme modern_dark 88 | binscatter wage tenure, by(union) linetype(connect) title("Binned scatterplot") subtitle("Modern_dark color scheme") name(fig4c, replace) 89 | graph export "figs/fig4c.png", replace 90 | 91 | *------------------------------------------------------------------------------- 92 | * Fig 5: Line plots 93 | *------------------------------------------------------------------------------- 94 | 95 | sysuse nlsw88, clear 96 | 97 | set scheme s2color 98 | twoway (lfitci wage tenure if union==1), title("Line plot") subtitle("Default color scheme") name(fig5a, replace) 99 | graph export "figs/fig5a.png", replace 100 | set scheme modern 101 | twoway (lfitci wage tenure if union==1), title("Line plot") subtitle("Modern color scheme") name(fig5b, replace) 102 | graph export "figs/fig5b.png", replace 103 | set scheme modern_dark 104 | twoway (lfitci wage tenure if union==1), title("Line plot") subtitle("Modern_dark color scheme") name(fig5c, replace) 105 | graph export "figs/fig5c.png", replace 106 | 107 | -------------------------------------------------------------------------------- /figs/fig1a.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mdroste/stata-scheme-modern/f45d8251cabe3d44a662c0798483f6e37f3c662d/figs/fig1a.png -------------------------------------------------------------------------------- /figs/fig1b.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mdroste/stata-scheme-modern/f45d8251cabe3d44a662c0798483f6e37f3c662d/figs/fig1b.png -------------------------------------------------------------------------------- /figs/fig1c.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mdroste/stata-scheme-modern/f45d8251cabe3d44a662c0798483f6e37f3c662d/figs/fig1c.png -------------------------------------------------------------------------------- /figs/fig2a.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mdroste/stata-scheme-modern/f45d8251cabe3d44a662c0798483f6e37f3c662d/figs/fig2a.png -------------------------------------------------------------------------------- /figs/fig2b.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mdroste/stata-scheme-modern/f45d8251cabe3d44a662c0798483f6e37f3c662d/figs/fig2b.png -------------------------------------------------------------------------------- /figs/fig2c.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mdroste/stata-scheme-modern/f45d8251cabe3d44a662c0798483f6e37f3c662d/figs/fig2c.png -------------------------------------------------------------------------------- /figs/fig3a.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mdroste/stata-scheme-modern/f45d8251cabe3d44a662c0798483f6e37f3c662d/figs/fig3a.png -------------------------------------------------------------------------------- /figs/fig3b.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mdroste/stata-scheme-modern/f45d8251cabe3d44a662c0798483f6e37f3c662d/figs/fig3b.png -------------------------------------------------------------------------------- /figs/fig3c.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mdroste/stata-scheme-modern/f45d8251cabe3d44a662c0798483f6e37f3c662d/figs/fig3c.png -------------------------------------------------------------------------------- /figs/fig4a.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mdroste/stata-scheme-modern/f45d8251cabe3d44a662c0798483f6e37f3c662d/figs/fig4a.png -------------------------------------------------------------------------------- /figs/fig4b.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mdroste/stata-scheme-modern/f45d8251cabe3d44a662c0798483f6e37f3c662d/figs/fig4b.png -------------------------------------------------------------------------------- /figs/fig4c.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mdroste/stata-scheme-modern/f45d8251cabe3d44a662c0798483f6e37f3c662d/figs/fig4c.png -------------------------------------------------------------------------------- /figs/fig5a.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mdroste/stata-scheme-modern/f45d8251cabe3d44a662c0798483f6e37f3c662d/figs/fig5a.png -------------------------------------------------------------------------------- /figs/fig5b.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mdroste/stata-scheme-modern/f45d8251cabe3d44a662c0798483f6e37f3c662d/figs/fig5b.png -------------------------------------------------------------------------------- /figs/fig5c.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mdroste/stata-scheme-modern/f45d8251cabe3d44a662c0798483f6e37f3c662d/figs/fig5c.png -------------------------------------------------------------------------------- /scheme-modern.pkg: -------------------------------------------------------------------------------- 1 | v 1.0 2 | d 3 | d 'scheme-modern': pretty stata schemes for stata 4 | d 5 | d Distribution-Date: 20190701 6 | d 7 | f scheme-modern.scheme 8 | f scheme-modern_dark.scheme -------------------------------------------------------------------------------- /scheme-modern.scheme: -------------------------------------------------------------------------------- 1 | * =============================================================================== 2 | * FILE: scheme-modern 3 | * PURPOSE: Pretty graphing scheme for Stata 4 | * VERSION: 1.0 5 | * MORE INFO: https://github.com/mdroste/stata-scheme-modern 6 | * =============================================================================== 7 | 8 | #include s2color 9 | 10 | * ------------------------------------------------------------------------------- 11 | * Legend options 12 | * ------------------------------------------------------------------------------- 13 | 14 | * Default position 15 | clockdir legend_position 4 16 | 17 | * Number of columns 18 | numstyle legend_cols 1 19 | 20 | * Number of rows (0 = just want keys enumerated in one column) 21 | numstyle legend_rows 0 22 | 23 | * Legend key size 24 | gsize legend_key_xsize 5 25 | 26 | * XX 27 | yesno legend_col_first no 28 | yesno legend_row_first yes 29 | 30 | * ------------------------------------------------------------------------------- 31 | * Graph size and margin options 32 | * ------------------------------------------------------------------------------- 33 | 34 | margin axis_title small 35 | 36 | graphsize x 6 37 | 38 | gsize medsmall 39 | gsize gap tiny 40 | gsize text medsmall 41 | gsize body medsmall 42 | gsize title medlarge 43 | gsize small_body small 44 | gsize heading medium 45 | gsize subheading medsmall 46 | gsize axis_title medsmall 47 | gsize matrix_label large 48 | gsize label medsmall 49 | gsize small_label small 50 | gsize matrix_marklbl small 51 | gsize key_label small 52 | gsize note small 53 | gsize star medsmall 54 | gsize text_option medsmall 55 | gsize dot_rectangle third_tiny 56 | gsize axis_space half_tiny 57 | gsize axis_title_gap minuscule 58 | gsize tick tiny 59 | gsize minortick half_tiny 60 | gsize tickgap half_tiny 61 | gsize notickgap tiny 62 | gsize tick_label small 63 | gsize tick_biglabel medsmall 64 | gsize minortick_label vsmall 65 | gsize filled_text medsmall 66 | gsize reverse_big large 67 | gsize alternate_gap zero 68 | gsize title_gap vsmall 69 | gsize key_gap vsmall 70 | gsize key_linespace vsmall 71 | gsize star_gap minuscule 72 | gsize label_gap half_tiny 73 | gsize matrix_mlblgap half_tiny 74 | gsize barlabel_gap tiny 75 | 76 | gsize legend_colgap vsmall 77 | gsize legend_row_gap tiny 78 | gsize legend_key_gap vsmall 79 | gsize legend_key_ysize vsmall 80 | 81 | gsize zyx2legend_key_gap tiny 82 | gsize zyx2legend_key_xsize vhuge 83 | gsize zyx2rowgap zero 84 | 85 | gsize sts_risktable_space third_tiny 86 | gsize sts_risktable_tgap zero 87 | gsize sts_risktable_lgap zero 88 | gsize sts_risk_label medsmall 89 | gsize sts_risk_title medsmall 90 | gsize sts_risk_tick zero 91 | 92 | linestyle legend none 93 | linestyle plotregion none 94 | anglestyle vertical_tick horizontal 95 | 96 | linewidth xyline medthin 97 | linewidth histogram vthin 98 | linewidth bar vthin 99 | 100 | linewidth p medium 101 | linewidth axisline medthin 102 | linewidth tick thin 103 | linewidth minortick thin 104 | linewidth background thin 105 | linewidth foreground thin 106 | linewidth major_grid thin 107 | linewidth minor_grid thin 108 | linewidth refmarker vthin 109 | linewidth matrixmark vthin 110 | linewidth dots thin 111 | linewidth dot_line thin 112 | linewidth dot_area thin 113 | linewidth dotmark thin 114 | linewidth plotregion vthin 115 | linewidth legend vthin 116 | linewidth pie vthin 117 | linewidth reverse_big vthin 118 | linewidth sunflower vthin 119 | linewidth matrix_plotregion vthin 120 | linewidth text_option vthin 121 | linewidth ci thin 122 | linewidth ci2 thin 123 | linewidth ci_area thin 124 | linewidth ci2_area thin 125 | linewidth pbar thin 126 | linewidth p1bar thin 127 | linewidth p2bar thin 128 | linewidth p3bar thin 129 | linewidth p4bar thin 130 | linewidth p5bar thin 131 | linewidth p6bar thin 132 | linewidth p7bar thin 133 | linewidth p8bar thin 134 | linewidth p9bar thin 135 | linewidth p10bar thin 136 | linewidth p11bar thin 137 | linewidth p12bar thin 138 | linewidth p13bar thin 139 | linewidth p14bar thin 140 | linewidth p15bar thin 141 | 142 | linewidth small small 143 | linewidth histogram thin 144 | linewidth bar thin 145 | 146 | linewidth refline medthin 147 | 148 | symbolsize small 149 | symbolsize p small 150 | 151 | linepattern xyline shortdash 152 | linepattern ci dash 153 | linepattern ci_area solid 154 | 155 | linepattern grid dot 156 | linepattern major_grid dot 157 | linepattern minor_grid dot 158 | 159 | * ------------------------------------------------------------------------------- 160 | * Color options 161 | * ------------------------------------------------------------------------------- 162 | 163 | * White background for all plots 164 | color background white 165 | 166 | * Colors for grid lines and stuff 167 | color xyline gs7 168 | color tick gs9 169 | color minortick gs9 170 | color grid gs9 171 | color major_grid gs9 172 | color minor_grid gs9 173 | color axisline gs8 174 | color matrix gs6 175 | color matrixmarkline gs6 176 | color refmarker gs11 177 | color refmarkline black 178 | 179 | * Default colors for all other non-specified objects, first one should be 31 88 137 180 | color p1 "31 88 137" 181 | color p2 "155 52 58" 182 | color p3 "94 130 50" 183 | color p4 dkorange 184 | color p5 teal 185 | color p6 cranberry 186 | color p7 lavender 187 | color p8 khaki 188 | color p9 sienna 189 | color p10 emidblue 190 | color p11 emerald 191 | color p12 brown 192 | color p13 erose 193 | color p14 gold 194 | color p15 bluishgray 195 | 196 | * Fade out bar charts and histograms into lighter palette 197 | intensity bar 80 198 | intensity histogram 80 199 | 200 | * Confidence intervals 201 | intensity ci_area inten30 202 | color ci_area gs4%50 203 | color ci_arealine gs4%0 204 | 205 | opacity bar 50 206 | 207 | * ------------------------------------------------------------------------------- 208 | * Gridline options 209 | * ------------------------------------------------------------------------------- 210 | 211 | yesno draw_major_grid no 212 | yesno draw_minor_grid no 213 | yesno draw_majornl_grid no 214 | yesno draw_minornl_grid no 215 | yesno draw_major_hgrid yes 216 | yesno draw_minor_hgrid no 217 | yesno draw_majornl_hgrid no 218 | yesno draw_minornl_hgrid no 219 | yesno draw_major_vgrid yes 220 | yesno draw_minor_vgrid no 221 | yesno draw_majornl_vgrid no 222 | yesno draw_minornl_vgrid no 223 | yesno draw_major_nl_vgrid no 224 | yesno draw_minor_nl_vgrid no 225 | yesno draw_majornl_nl_vgrid no 226 | yesno draw_minornl_nl_vgrid no 227 | yesno draw_major_nl_hgrid no 228 | yesno draw_minor_nl_hgrid no 229 | yesno draw_majornl_nl_hgrid no 230 | yesno draw_minornl_nl_hgrid no 231 | 232 | yesno grid_draw_min yes 233 | yesno grid_draw_max yes 234 | 235 | yesno extend_axes_low yes 236 | yesno extend_axes_high yes 237 | yesno extend_axes_full_low yes 238 | yesno extend_axes_full_high yes 239 | -------------------------------------------------------------------------------- /scheme-modern_dark.scheme: -------------------------------------------------------------------------------- 1 | * =============================================================================== 2 | * FILE: scheme-modern_dark 3 | * PURPOSE: Pretty graphing scheme for Stata 4 | * VERSION: 1.0 5 | * MORE INFO: https://github.com/mdroste/stata-scheme-modern 6 | * =============================================================================== 7 | 8 | #include s2color 9 | 10 | * ------------------------------------------------------------------------------- 11 | * Legend properties 12 | * ------------------------------------------------------------------------------- 13 | 14 | clockdir legend_position 4 * test 15 | numstyle legend_cols 1 16 | numstyle legend_rows 0 17 | gsize legend_key_xsize 5 18 | yesno legend_col_first no 19 | yesno legend_row_first yes 20 | 21 | * ------------------------------------------------------------------------------- 22 | * Size options 23 | * ------------------------------------------------------------------------------- 24 | 25 | margin axis_title small 26 | 27 | graphsize x 6 28 | 29 | gsize medsmall 30 | gsize gap tiny 31 | gsize text medsmall 32 | gsize body medsmall 33 | gsize title medlarge 34 | gsize small_body small 35 | gsize heading medium 36 | gsize subheading medsmall 37 | gsize axis_title medsmall 38 | gsize matrix_label large 39 | gsize label medsmall 40 | gsize small_label small 41 | gsize matrix_marklbl small 42 | gsize key_label small 43 | gsize note small 44 | gsize star medsmall 45 | gsize text_option medsmall 46 | gsize dot_rectangle third_tiny 47 | gsize axis_space half_tiny 48 | gsize axis_title_gap minuscule 49 | gsize tick tiny 50 | gsize minortick half_tiny 51 | gsize tickgap half_tiny 52 | gsize notickgap tiny 53 | gsize tick_label small 54 | gsize tick_biglabel medsmall 55 | gsize minortick_label vsmall 56 | gsize filled_text medsmall 57 | gsize reverse_big large 58 | gsize alternate_gap zero 59 | gsize title_gap vsmall 60 | gsize key_gap vsmall 61 | gsize key_linespace vsmall 62 | gsize star_gap minuscule 63 | gsize label_gap half_tiny 64 | gsize matrix_mlblgap half_tiny 65 | gsize barlabel_gap tiny 66 | 67 | gsize legend_colgap vsmall 68 | gsize legend_row_gap tiny 69 | gsize legend_key_gap vsmall 70 | gsize legend_key_ysize vsmall 71 | 72 | gsize zyx2legend_key_gap tiny 73 | gsize zyx2legend_key_xsize vhuge 74 | gsize zyx2rowgap zero 75 | 76 | gsize sts_risktable_space third_tiny 77 | gsize sts_risktable_tgap zero 78 | gsize sts_risktable_lgap zero 79 | gsize sts_risk_label medsmall 80 | gsize sts_risk_title medsmall 81 | gsize sts_risk_tick zero 82 | 83 | linestyle legend none 84 | linestyle plotregion none 85 | anglestyle vertical_tick horizontal 86 | 87 | linewidth xyline medthin 88 | linewidth histogram vthin 89 | linewidth bar vthin 90 | 91 | linewidth p medium 92 | linewidth axisline medthin 93 | linewidth tick thin 94 | linewidth minortick thin 95 | linewidth background thin 96 | linewidth foreground thin 97 | linewidth major_grid medium 98 | linewidth minor_grid vthin 99 | linewidth refmarker vthin 100 | linewidth matrixmark vthin 101 | linewidth dots thin 102 | linewidth dot_line thin 103 | linewidth dot_area thin 104 | linewidth dotmark thin 105 | linewidth plotregion vthin 106 | linewidth legend vthin 107 | linewidth pie vthin 108 | linewidth reverse_big vthin 109 | linewidth sunflower vthin 110 | linewidth matrix_plotregion vthin 111 | linewidth text_option vthin 112 | linewidth ci thin 113 | linewidth ci2 thin 114 | linewidth ci_area thin 115 | linewidth ci2_area thin 116 | linewidth pbar thin 117 | linewidth p1bar thin 118 | linewidth p2bar thin 119 | linewidth p3bar thin 120 | linewidth p4bar thin 121 | linewidth p5bar thin 122 | linewidth p6bar thin 123 | linewidth p7bar thin 124 | linewidth p8bar thin 125 | linewidth p9bar thin 126 | linewidth p10bar thin 127 | linewidth p11bar thin 128 | linewidth p12bar thin 129 | linewidth p13bar thin 130 | linewidth p14bar thin 131 | linewidth p15bar thin 132 | 133 | linewidth small small 134 | linewidth histogram thin 135 | linewidth bar thin 136 | linewidth arealine vthin 137 | 138 | linewidth refline medthin 139 | 140 | symbolsize small 141 | symbolsize p small 142 | 143 | linepattern xyline shortdash 144 | linepattern ci dash 145 | linepattern ci_area solid 146 | 147 | linepattern grid dot 148 | linepattern major_grid solid 149 | linepattern minor_grid solid 150 | 151 | * ------------------------------------------------------------------------------- 152 | * Color options 153 | * ------------------------------------------------------------------------------- 154 | 155 | * White background for all plots 156 | color background white 157 | 158 | * Colors for grid lines and stuff 159 | color xyline gs7 160 | color tick gs9 161 | color minortick white 162 | color grid gs9 163 | color major_grid white 164 | color minor_grid white 165 | color axisline white 166 | color matrix gs6 167 | color matrixmarkline gs6 168 | color refmarker gs11 169 | color refmarkline black 170 | color plotregion "235 235 235" 171 | 172 | * Default colors for all other non-specified objects 173 | color p1 "31 88 137" 174 | color p2 "155 52 58" 175 | color p3 "94 130 50" 176 | color p4 dkorange 177 | color p5 teal 178 | color p6 cranberry 179 | color p7 lavender 180 | color p8 khaki 181 | color p9 sienna 182 | color p10 emidblue 183 | color p11 emerald 184 | color p12 brown 185 | color p13 erose 186 | color p14 gold 187 | color p15 bluishgray 188 | 189 | * Fade out bar charts and histograms into lighter palette 190 | intensity bar 80 191 | intensity histogram 80 192 | 193 | * Confidence intervals 194 | intensity ci_area inten30 195 | color ci_area ebblue%50 196 | color ci_arealine ebblue%0 197 | 198 | 199 | opacity bar 50 200 | 201 | * ------------------------------------------------------------------------------- 202 | * Gridline options 203 | * ------------------------------------------------------------------------------- 204 | 205 | gridstyle minor minor 206 | 207 | yesno draw_major_grid yes 208 | yesno draw_minor_grid yes 209 | yesno draw_major_hgrid yes 210 | yesno draw_minor_hgrid yes 211 | yesno draw_major_vgrid yes 212 | yesno draw_minor_vgrid yes 213 | yesno draw_minornl_hgrid yes 214 | yesno draw_minornl_vgrid yes 215 | 216 | yesno grid_draw_min yes 217 | yesno grid_draw_max yes 218 | 219 | yesno extend_axes_low yes 220 | yesno extend_axes_high yes 221 | yesno extend_axes_full_low yes 222 | yesno extend_axes_full_high yes 223 | 224 | numticks_g horizontal_tminor 2 225 | numticks_g vertical_tminor 2 226 | 227 | axisstyle dot_scale_horiz horizontal_default 228 | axisstyle dot_scale_vert vertical_default 229 | axisstyle bar_scale_horiz horizontal_default 230 | axisstyle bar_scale_vert vertical_default 231 | axisstyle box_scale_horiz horizontal_default 232 | axisstyle box_scale_vert vertical_default -------------------------------------------------------------------------------- /stata.toc: -------------------------------------------------------------------------------- 1 | 2 | v 0.5 3 | d Michael Droste, thedroste@gmail.com 4 | p 'scheme-modern': pretty schemes for stata --------------------------------------------------------------------------------