<div dir="ltr"><div><div>There is the context manager approach, but it must be utilized prior to axes creation. For the most part, any usage of the rcParams happen at creation time of the relevant artist. So, while you could update the color cycle prior to creating an axes but after the figure creation, changing the default figure size would be useless at that point since the figure is already made.<br><br></div>There might be some push in the future to defer rcParam evaluation closer to draw time (traitlet integration), but I wouldn't bet on it happening any time soon, and it probably wouldn't do what you need in any case.<br><br></div>Ben Root<br><br></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Feb 29, 2016 at 12:03 PM, Phyks <span dir="ltr"><<a href="mailto:spam+matplotlib@phyks.me" target="_blank">spam+matplotlib@phyks.me</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,<br>
<br>
Is there a way to change locally the rcParams, for a specific figure after<br>
it has been created?<br>
<br>
I know about the rcParams setting (for global settings) and the with<br>
statement construction, but this requires to be done before the figure was<br>
created, and I need to change the settings on an already existing figure (in<br>
particular color cycler).<br>
<br>
Thanks<br>
<br>
<br>
<br>
--<br>
View this message in context: <a href="http://matplotlib.1069221.n5.nabble.com/Changing-rcParams-locally-on-the-fly-tp46813.html" rel="noreferrer" target="_blank">http://matplotlib.1069221.n5.nabble.com/Changing-rcParams-locally-on-the-fly-tp46813.html</a><br>
Sent from the matplotlib - devel mailing list archive at Nabble.com.<br>
_______________________________________________<br>
Matplotlib-devel mailing list<br>
<a href="mailto:Matplotlib-devel@python.org">Matplotlib-devel@python.org</a><br>
<a href="https://mail.python.org/mailman/listinfo/matplotlib-devel" rel="noreferrer" target="_blank">https://mail.python.org/mailman/listinfo/matplotlib-devel</a><br>
</blockquote></div><br></div>