Commit 6447ff6
committed
Allow setting MATPLOTLIBRC by process substitution.
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).1 parent 6336f2d commit 6447ff6
1 file changed
Lines changed: 7 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
118 | 118 | | |
119 | 119 | | |
120 | 120 | | |
| 121 | + | |
121 | 122 | | |
122 | 123 | | |
123 | 124 | | |
| |||
798 | 799 | | |
799 | 800 | | |
800 | 801 | | |
801 | | - | |
| 802 | + | |
| 803 | + | |
802 | 804 | | |
803 | 805 | | |
804 | 806 | | |
| |||
833 | 835 | | |
834 | 836 | | |
835 | 837 | | |
836 | | - | |
837 | | - | |
| 838 | + | |
| 839 | + | |
| 840 | + | |
| 841 | + | |
838 | 842 | | |
839 | 843 | | |
840 | 844 | | |
| |||
0 commit comments