From 26e5ea8ba9aaecef3ec2e3ad002b6ddab7ca94a6 Mon Sep 17 00:00:00 2001 From: Daniel Weschke Date: Sun, 25 Jan 2026 12:21:37 +0100 Subject: [PATCH] add matplotlib color style --- scripts/matplotlib-stylelib/dark.mplstyle | 31 +++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 scripts/matplotlib-stylelib/dark.mplstyle diff --git a/scripts/matplotlib-stylelib/dark.mplstyle b/scripts/matplotlib-stylelib/dark.mplstyle new file mode 100644 index 00000000..820791b0 --- /dev/null +++ b/scripts/matplotlib-stylelib/dark.mplstyle @@ -0,0 +1,31 @@ +# https://matplotlib.org/stable/tutorials/introductory/customizing.html + +# size +savefig.bbox: tight + +# color page area +figure.facecolor: 0C1C2300 # 'paper color not chart area' +savefig.facecolor: auto # 'paper color not chart area' auto = same as figure +savefig.transparent: False + +# color chart area +axes.facecolor: FFFFFF07 # low white alpha; a little brighter than background +axes.edgecolor: FFFFFF20 +legend.facecolor: 0C1C23 # no alpha setable +legend.frameon: True # background color +legend.framealpha: 0.75 +legend.edgecolor: 606060 +grid.color: FFFFFF +grid.alpha: 0.1 + +# color text +text.color: FFFFFFD9 # title, legend +xtick.color: 606060 # xtick label and xtick line, but not xlabel +xtick.labelcolor: FFFFFFD9 # xtick label, not xtick line +ytick.color: 606060 # ytick label and ytick line, but not ylabel +ytick.labelcolor: FFFFFFD9 # ytick label, not ytick line +axes.labelcolor: FFFFFFD9 # xlabel, ylabel +legend.labelcolor: FFFFFFD9 + +# color data +axes.prop_cycle: cycler('color', ['1F78B4', 'E31A1C', '33A02C', 'FF7F00', '6A3D9A', 'FB9A99', 'B2DF8A', 'FDBF6F', 'A6CEE3', 'CAB2D6'])