8000 Merge pull request #252 from lukelbd/default-transparent-false · proplot-dev/proplot@fa77901 · GitHub
[go: up one dir, main page]

Skip to content

Commit fa77901

Browse files
authored
Merge pull request #252 from lukelbd/default-transparent-false
Return default savefig transparency to False
2 parents 9099f44 + 3134f34 commit fa77901

File tree

5 files changed

+8
-8
lines changed

5 files changed

+8
-8
lines changed

CHANGELOG.rst

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,9 @@ ProPlot v0.7.0 (2021-06-30)
6969

7070
.. rubric:: Deprecated
7171

72+
* Change default :rcraw:`savefig.transparent` back to ``False`` (:pr:`252`). Dubious
73+
justification for ``True`` in the first place, and makes default PNG proplot figures
74+
unreadable wherever "dark mode" is enabled.
7275
* Rename `SciVisColor` colormaps from ``Blue1``, ``Blue2``, etc. to plurals ``Blues1``,
7376
``Blues2``, etc. to avoid name conflict with open-color colors. This permits making
7477
monochromatic open-color maps with e.g. ``plot.Colormap('blue9')``, and feels more

docs/basics.py

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -55,11 +55,8 @@
5555
# `matplotlib backend <https://matplotlib.org/faq/usage_faq#what-is-a-backend>`__
5656
# -- the default background color is white when the figure is saved. This is done
5757
# by setting :rcraw:`figure.facecolor` to gray, in order to improve contrast
58-
# when working with figures.
59-
# ProPlot also makes the default saved figure background *transparent*
60-
# by setting :rcraw:`savefig.transparent` to ``True``
61-
# and changes the default :rcraw:`savefig.format` from PNG to PDF
62-
# for the following reasons:
58+
# when working with figures, similar to MATLAB. ProPlot also changes the default
59+
# :rcraw:`savefig.format` from PNG to PDF for the following reasons:
6360
#
6461
# #. Vector graphic formats are infinitely scalable.
6562
# #. Vector graphic formats are preferred by academic journals.

docs/projections.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@
142142
#
143143
# * ProPlot ensures that polar cartopy projections like
144144
# `~cartopy.crs.NorthPolarStereo` have circular boundaries (see `this example\
145-
# <https://scitools.org.uk/cartopy/docs/latest/gallery/always_circular_stereo>`__
145+
# <https://scitools.org.uk/cartopy/docs/latest/gallery/lines_and_polygons/always_circular_stereo.html>`__
146146
# from the cartopy website).
147147
# * By default, non-polar cartopy projections are forced to have global extent
148148
# with `~cartopy.mpl.geoaxes.GeoAxes.set_global` and polar cartopy projections

proplot/figure.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1262,7 +1262,7 @@ def save(self, filename, **kwargs):
12621262
return self.savefig(filename, **kwargs)
12631263

12641264
def savefig(self, filename, **kwargs):
1265-
# Automatically expand user the user name. Undocumented because we
1265+
# Automatically expand the user name. Undocumented because we
12661266
# do not want to overwrite the matplotlib docstring.
12671267
# TODO: Concatenate docstrings.
12681268
if isinstance(filename, str):

proplot/internals/rcsetup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,7 @@
208208
'savefig.dpi': 1200, # academic journal recommendations for raster line art
209209
'savefig.facecolor': 'white', # different from figure.facecolor
210210
'savefig.format': 'pdf', # most users use bitmap, but vector graphics are better
211-
'savefig.transparent': True,
211+
'savefig.transparent': False,
212212
'xtick.direction': TICKDIR,
213213
'xtick.labelsize': LABELSIZE,
214214
'xtick.major.pad': TICKPAD,

0 commit comments

Comments
 (0)
0