|
From: Goyo <goy...@gm...> - 2014-03-06 17:33:27
|
2014-03-05 21:13 GMT+01:00 Adam Hughes <hug...@gm...>:
> Thanks Andreas. That is correct; however, I'd rather not make this change
> global. I only want a subset of my plots to have this behavior. I feel
> like changing the rcparams would change this globally and probably confuse
> users who don't know this is being called.
Try using rc_context:
with plt.rc_context(rc={'axes.color_cycle': ['orange', default_cycle[1::]]}):
plt.plot(...)
This should change the color cycle only within the scope of the with
clause (not tested with this particular rcparam).
Goyo
|