From af943747b5df89779ca164b12c3ea5f8644318a1 Mon Sep 17 00:00:00 2001 From: Pascal Bourgault Date: Tue, 2 Apr 2024 16:24:18 -0400 Subject: [PATCH 1/3] Create transparent.mplstyle --- figanos/matplotlib/style/transparent.mplstyle | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 figanos/matplotlib/style/transparent.mplstyle diff --git a/figanos/matplotlib/style/transparent.mplstyle b/figanos/matplotlib/style/transparent.mplstyle new file mode 100644 index 00000000..d1ac9e8e --- /dev/null +++ b/figanos/matplotlib/style/transparent.mplstyle @@ -0,0 +1,8 @@ +# Pour rendre les figures transparentes + +# La couleur de fond de la figure elle-même (blanc avec 0 opacité) +figure.facecolor: 1.0, 1.0, 1.0, 0.0 +savefig.facecolor: 1.0, 1.0, 1.0, 0.0 + +# La couleur de fond des axes (blanc à 30%) +axes.facecolor: 1.0, 1.0, 1.0, 0.3 From 6197db5e203c90220474f4b2686f3df0b0144eb8 Mon Sep 17 00:00:00 2001 From: Pascal Bourgault Date: Tue, 2 Apr 2024 16:36:50 -0400 Subject: [PATCH 2/3] Add doc --- docs/notebooks/figanos_docs.ipynb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/docs/notebooks/figanos_docs.ipynb b/docs/notebooks/figanos_docs.ipynb index 2f54c9b7..5c605052 100644 --- a/docs/notebooks/figanos_docs.ipynb +++ b/docs/notebooks/figanos_docs.ipynb @@ -105,7 +105,8 @@ "\n", "The currently available stylesheets are as follows:\n", "\n", - "* ouranos: General stylesheet, including default colors." + "* ouranos: General stylesheet, including default colors.\n", + "* transparent: Adds transparency to the styles (fully transparent figure background and 30% opacity on the axes).\n" ] }, { From ff7f14b51f0357237eb6de4ec451d82d10cb6aa9 Mon Sep 17 00:00:00 2001 From: Pascal Bourgault Date: Tue, 2 Apr 2024 16:38:12 -0400 Subject: [PATCH 3/3] upd changes --- CHANGES.rst | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGES.rst b/CHANGES.rst index 1119ce07..405ff940 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -4,11 +4,12 @@ Changelog 0.4.0 (unreleased) ------------------ -Contributors to this version: Trevor James Smith (:user:`Zeitsperre`), Marco Braun (:user:`vindelico`) +Contributors to this version: Trevor James Smith (:user:`Zeitsperre`), Marco Braun (:user:`vindelico`), Pascal Bourgault (:user:`aulemahal`) New features and enhancements ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ * Use list or ndarray as levels for colorbar in gridmap and small bug fixes (:pull:`176`). +* Added style sheet ``transparent.mplstyle`` (:issue:`183`, :pull:`185`) Internal changes ^^^^^^^^^^^^^^^^