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 e475af9 commit c5fc9d8Copy full SHA for c5fc9d8
lib/matplotlib/tests/test_usetex.py
@@ -87,15 +87,15 @@ def test_usetex_xcolor():
87
mpl.rcParams['text.usetex'] = True
88
89
fig = plt.figure()
90
- t = fig.text(0.5, 0.5, "Some text 0123456789")
+ text = fig.text(0.5, 0.5, "Some text 0123456789")
91
fig.canvas.draw()
92
- pos = t.get_window_extent()
93
94
mpl.rcParams['text.latex.preamble'] = r'\usepackage[dvipsnames]{xcolor}'
95
96
+ text2 = fig.text(0.5, 0.5, "Some text 0123456789")
97
98
- np.testing.assert_array_equal(t.get_window_extent(), pos)
+ np.testing.assert_array_equal(text2.get_window_extent(),
+ text.get_window_extent())
99
100
101
def test_textcomp_full():
0 commit comments