Allow setting MATPLOTLIBRC by process substitution. - #9570
Conversation
|
This basically follows normal rules of shell process substitution (on shells that support them). I can add a whatsnew saying that that's supported but I don't really want to explain what process substitution is... Also, note that this very technically breaks code that assumes that you can read from Probably all these |
This makes (e.g.) ``` $ MATPLOTLIBRC=<(echo 'savefig.transparent: true') python foo.py ``` use `savefig.transparent: true` as contents of matplotlibrc for the given process (on POSIX). This generalizes the MPLBACKEND mechanism to all rcParams (although the lack of "cascading" rc-files means that the "normal" rc-file is completely hidden).
|
Added some (minimal) docs (as stated above it seems pointless to explain what process substitution is in the mpl docs). |

This makes (e.g.)
use
savefig.transparent: trueas contents of matplotlibrc for thegiven process (on POSIX).
This generalizes the MPLBACKEND mechanism to all rcParams (although the
lack of "cascading" rc-files means that the "normal" rc-file is
completely hidden -- but that's a separate issue).
Closes #6884.
PR Summary
PR Checklist