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 ^^^^^^^^^^^^^^^^ 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" ] }, { 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