summaryrefslogtreecommitdiff
path: root/macros/xetex/latex/langsci/langsci-plot-templates.sty
diff options
context:
space:
mode:
Diffstat (limited to 'macros/xetex/latex/langsci/langsci-plot-templates.sty')
-rw-r--r--macros/xetex/latex/langsci/langsci-plot-templates.sty56
1 files changed, 56 insertions, 0 deletions
diff --git a/macros/xetex/latex/langsci/langsci-plot-templates.sty b/macros/xetex/latex/langsci/langsci-plot-templates.sty
new file mode 100644
index 0000000000..5628b1842c
--- /dev/null
+++ b/macros/xetex/latex/langsci/langsci-plot-templates.sty
@@ -0,0 +1,56 @@
+%% Templates for plotting with pgfplots in Language Science Press books.
+
+%% Cycle lists for bar plots
+%% Red-Yellow-Blue, inspired by ColorBrewer's RdYlBu
+\pgfplotscreateplotcyclelist{langsci-RdYlBl-6}{
+ {lsRed,fill=lsRed!90!white,mark=none},
+ {lsMidOrange,fill=lsMidOrange!90!white,mark=none},
+ {lsYellow,fill=lsYellow!90!white,mark=none},
+ {lsLightBlue,fill=lsLightBlue!90!white,mark=none},
+ {lsMidDarkBlue,fill=lsMidDarkBlue!90!white,mark=none},
+ {lsNightBlue,fill=lsNightBlue!90!white,mark=none}
+}
+
+\pgfplotscreateplotcyclelist{langsci-RdYlBl-5}{
+ {lsRed,fill=lsRed!90!white,mark=none},
+ {lsMidOrange,fill=lsMidOrange!90!white,mark=none},
+ {lsYellow,fill=lsYellow!90!white,mark=none},
+ {lsLightBlue,fill=lsLightBlue!90!white,mark=none},
+ {lsNightBlue,fill=lsNightBlue!90!white,mark=none}
+}
+
+\pgfplotscreateplotcyclelist{langsci-RdYlBl-4}{
+ {lsRed,fill=lsRed!90!white,mark=none},
+ {lsMidOrange,fill=lsMidOrange!90!white,mark=none},
+ {lsLightBlue,fill=lsLightBlue!90!white,mark=none},
+ {lsNightBlue,fill=lsNightBlue!90!white,mark=none}
+}
+
+\pgfplotscreateplotcyclelist{langsci-RdYlBl-3}{
+ {lsMidOrange,fill=lsMidOrange!90!white,mark=none},
+ {lsYellow,fill=lsYellow!90!white,mark=none},
+ {lsLightBlue,fill=lsLightBlue!90!white,mark=none}
+}
+
+%% Yellow-Green-Blue, inspired by ColorBrewer's YlGnBu
+
+\pgfplotscreateplotcyclelist{langsci-YlGnBl-5}{
+ {lsYellow,fill=lsYellow!50!white,mark=none},
+ {lsSoftGreen,fill=lsSoftGreen!50!white,mark=none},
+ {lsMidGreen,fill=lsMidGreen!50!white,mark=none},
+ {lsLightBlue,fill=lsLightBlue!90!white,mark=none},
+ {lsNightBlue,fill=lsNightBlue!90!white,mark=none},
+}
+
+\pgfplotscreateplotcyclelist{langsci-YlGnBl-4}{
+ {lsYellow,fill=lsYellow!50!white,mark=none},
+ {lsSoftGreen,fill=lsSoftGreen!50!white,mark=none},
+ {lsMidGreen,fill=lsMidGreen!50!white,mark=none},
+ {lsMidDarkBlue,fill=lsMidDarkBlue!90!white,mark=none}
+}
+
+\pgfplotscreateplotcyclelist{langsci-YlGnBl-3}{
+ {lsYellow,fill=lsYellow!50!white,mark=none},
+ {lsSoftGreen,fill=lsSoftGreen!50!white,mark=none},
+ {lsLightBlue,fill=lsLightBlue!90!white,mark=none}
+}