mathematicalmichael / mud

https://mud.dataconsistent.com
MIT License
2 stars 2 forks source link

correctly handle rc defaults #76

Closed mathematicalmichael closed 9 months ago

mathematicalmichael commented 9 months ago

74 did make the check more robust, but didn't address the fundamental problem of usetex not being set correctly due to how matplotlib handles its internal state. triggering usetex, even inside of try cascaded to changes in other keys.

keeping the original state of rcParams and restoring it if tex fails PRIOR to setting our custom rcParams allows things to go smoothly.