Skip to content

Commit

Permalink
Merge pull request #185 from Ouranosinc/transparence
Browse files Browse the repository at this point in the history
Create transparent.mplstyle
  • Loading branch information
aulemahal committed Apr 4, 2024
2 parents a54cf2a + ff7f14b commit 69ab372
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 2 deletions.
3 changes: 2 additions & 1 deletion CHANGES.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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
^^^^^^^^^^^^^^^^
Expand Down
3 changes: 2 additions & 1 deletion docs/notebooks/figanos_docs.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -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"
]
},
{
Expand Down
8 changes: 8 additions & 0 deletions figanos/matplotlib/style/transparent.mplstyle
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 69ab372

Please sign in to comment.