Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 50c0b74 commit d38ec34Copy full SHA for d38ec34
1 file changed
lib/matplotlib/tests/test_usetex.py
@@ -3,13 +3,20 @@
3
4
import matplotlib
5
from matplotlib.testing.decorators import image_comparison
6
+from matplotlib.compat.subprocess import check_output
7
import matplotlib.pyplot as plt
8
9
10
@image_comparison(baseline_images=['test_usetex'],
11
extensions=['pdf', 'png'],
12
tol=0.3)
13
def test_usetex():
14
+ cmd = ['latex', '-version']
15
+ try:
16
+ check_output(cmd)
17
+ except:
18
+ from nose import SkipTest
19
+ raise SkipTest('missing command: %s' % cmd[0])
20
matplotlib.rcParams['text.usetex'] = True
21
fig = plt.figure()
22
ax = fig.add_subplot(111)
0 commit comments