From 925b1c955d65984d9e460d5df494b2d828a40416 Mon Sep 17 00:00:00 2001 From: KOSASIH Date: Sat, 20 Jul 2024 13:42:33 +0700 Subject: [PATCH] Create matplotlib_config.py --- data/matplotlib_config.py | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 data/matplotlib_config.py diff --git a/data/matplotlib_config.py b/data/matplotlib_config.py new file mode 100644 index 0000000..a8a732f --- /dev/null +++ b/data/matplotlib_config.py @@ -0,0 +1,20 @@ +import matplotlib as mpl + +# Set matplotlib backend +mpl.use('TkAgg') + +# Set matplotlib style +mpl.style.use('seaborn-whitegrid') + +# Set plot font sizes +mpl.rcParams['font.size'] = 12 +mpl.rcParams['axes.labelsize'] = 14 +mpl.rcParams['xtick.labelsize'] = 12 +mpl.rcParams['ytick.labelsize'] = 12 + +# Set plot colors +mpl.rcParams['axes.facecolor'] = 'white' +mpl.rcParams['axes.edgecolor'] = 'black' +mpl.rcParams['axes.labelcolor'] = 'black' +mpl.rcParams['xtick.color'] = 'black' +mpl.rcParams['ytick.color'] = 'black'