From 01523cefbc2e0968cbe9a0a1c6b68c2a12d03aed Mon Sep 17 00:00:00 2001 From: Evie Litherland-Smith Date: Thu, 30 Jan 2025 14:33:46 +0000 Subject: [PATCH] Add matplotlibrc file --- system/desktop.nix | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/system/desktop.nix b/system/desktop.nix index c10738fa..225d1911 100644 --- a/system/desktop.nix +++ b/system/desktop.nix @@ -206,6 +206,21 @@ early_exit=false fill_shape=false ''; + # Matplotlib default figure sizes and font settings + "matplotlib/matplotlibrc".text = + let + inherit (config.stylix) fonts; + in + '' + font.family: sans-serif + font.serif: ${fonts.serif.name}, DejaVu Serif + font.sans-serif: ${fonts.sansSerif.name}, DejaVu Sans + font.monospace: ${fonts.monospace.name}, DejaVu Sans Mono + figure.figsize: 8, 6 + figure.dpi: 150 + figure.autolayout: True + savefig.dpi: 300 + ''; # WhatsApp config "whatsapp-for-linux/settings.conf" = let