matplotlib/matplotlib — pull request #3795 by chebee7i (2014-11-14 01:01:11+00:00)
Title: RcParams instances for matplotlib.style.use

External libraries may want to prepare styles dynamically. For example, `brewer2mpl` provides various colormaps. While it could create it's own context manager for temporarily changing the `color_cycle`, I think it makes more sense if `matplotlib.style.use` can work directly with `RcParams` instances.

```
>>> with matplotlib.style.context(matplotlib.RcParams(**{'text.usetex':False})):
... print matplotlib.rcParams['text.usetex']
...
False
```