You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'd like to suggest a MPLRC environment variable which could be set to a JSON encoded dict, that would be merged into the rcparams read from the matplotlibrc.
Typical use case would be similar to MPLBACKEND -- temporarily set some rcparams without having to edit the source or the matplotlibrc.
Using environment variables for "simple" configuration of "base libraries" is pretty standard in the Unix world, right? Using JSON not so much (probably because most of them predate JSON) but that sounds better than introducing one new variable per rcparam.
Actually, a better idea would be to either have MPLRC contain the contents of the rcparams file itself, or have it point to a filename that contains the desired rcparams (in which case process substitution can come in handy) -- thus avoiding the need to invent yet another encoding.
Activity
tacaswell commentedon Aug 2, 2016
Interesting idea. Do other programs use this sort of thing?
anntzer commentedon Aug 3, 2016
Using environment variables for "simple" configuration of "base libraries" is pretty standard in the Unix world, right? Using JSON not so much (probably because most of them predate JSON) but that sounds better than introducing one new variable per rcparam.
anntzer commentedon Oct 5, 2016
Actually, a better idea would be to either have MPLRC contain the contents of the rcparams file itself, or have it point to a filename that contains the desired rcparams (in which case process substitution can come in handy) -- thus avoiding the need to invent yet another encoding.