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.
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. triggeringusetex
, even inside oftry
cascaded to changes in other keys.keeping the original state of
rcParams
and restoring it iftex
fails PRIOR to setting our customrcParams
allows things to go smoothly.