On Fri, May 25, 2012 at 4:07 PM, Tom Aldcroft <aldcroft@...
> Is there a simple way to essentially invert the default plotting color
> scheme so that the figure background is black and all text, ticks,
> axes, axis labels, etc are white? I think what I want is to redefine
> the RGB definitions of the standard color values 'b', 'y', 'k', etc so
> that I can make a plot figure with a black background using the same
> script as one for the normal white background.
> A spent a little while googling and didn't find anything apart from
> specifically setting different colors for every single plot element.
> This would be tiresome.
> Thanks in advance for any help,
You can create a custom matplotlibrc file  and use that for your plots.
The settings you'd probably want to change are copied below. Note that not
all plotting elements grab colors from rc parameters (unfortunately), so
you may find that some functions will ignore these settings.
I think the simplest way (currently) to use the rc file is by putting it in
the same directory as your plotting script (or wherever you're executing
your script). There's a pending pull request  that adds the ability to
load rc parameters from a file. Also, I maintain a small set of matplotlib
convenience functions, including a stylesheet-like function. I added the rc
parameters below as a new style and added an example to the documentation
Hope that helps,
# rc definitions for dark backgrounds