Improve detection of working usetex
This PR improves the detection of a working LaTeX configuration by generating an empty figure with matplotlib and usetex when setting up the test suite.
This PR improves the detection of a working LaTeX configuration by generating an empty figure with matplotlib and usetex when setting up the test suite.