I am using Seaborn to plot some data in Pandas.
I am making some very large plots (factorplot
s).
To see them, I am using some visualisation facilities at my university. I am using a Compound screen made up of 4 by 4 monitors with small (but nonzero) bevel -- the gap between the screens. This gap is black. To minimise the disconnect between the screen i want the graph backgound to be black. I have been digging around the documentation and playing around and I can't work it out.. Surely this is simple.
I can get grey background using set_style('darkgrid')
do i need to access the plot in matplotlib directly?
In new versions of seaborn you can also use
axes_style()
andset_style()
to quickly set the plot style to one of the predefined styles: darkgrid, whitegrid, dark, white, ticksI am not familiar with seaborn but the following appears to let you change the background by setting the axes background. It can set any of the
ax.set_*
elements.seaborn.set
takes andrc
argument that accepts a dictionary of valid matplotlibrcparams
. So we need to set two things: theaxes.facecolor
, which is the color of the area where the data are drawn, and thefigure.facecolor
, which is the everything a part of the figure outside of theaxes
object.(edited with advice from @mwaskom)
So if you do:
You get:
And that'll work with your
FacetGrid
as well.