Skip to content

Commit

Permalink
Fix matplotlib#5419: Set default figure background to white
Browse files Browse the repository at this point in the history
  • Loading branch information
mdboom committed Nov 25, 2015
1 parent 4d6bf22 commit 16ef7aa
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions doc/users/whats_new/style_changes.rst
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ are designed to work well in the most common cases.

These changes include:

- The default figure background color is now white.

- By default, the number of points displayed in a legend is now 1.

- The ''Blues'' colormap has been adjusted to be perceptually uniform. The old
Expand Down
4 changes: 2 additions & 2 deletions matplotlibrc.template
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ backend : %(backend)s

# When True, the figures rendered in the nbagg backend are created with
# a transparent background.
# nbagg.transparent : True
# nbagg.transparent : False

# if you are running pyplot inside a GUI and your backend choice
# conflicts, we will automatically try to find a compatible one for
Expand Down Expand Up @@ -384,7 +384,7 @@ backend : %(backend)s
#figure.titleweight : normal # weight of the figure title
#figure.figsize : 8, 6 # figure size in inches
#figure.dpi : 80 # figure dots per inch
#figure.facecolor : 0.75 # figure facecolor; 0.75 is scalar gray
#figure.facecolor : white # figure facecolor; 0.75 is scalar gray
#figure.edgecolor : white # figure edgecolor
#figure.autolayout : False # When True, automatically adjust subplot
# parameters to make the plot fit the figure
Expand Down

0 comments on commit 16ef7aa

Please sign in to comment.