Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 89544c1

Browse files
committed
MEP12 changes to use_tex_baseline_test.py
1. MEP12 changes done. 2. `Subplot` variable name changed to `subplot`. 3. `F` variable name changed to `f`.
1 parent 0a5314a commit 89544c1

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

examples/pylab_examples/usetex_baseline_test.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ def draw(self, renderer):
3131
plt.rcParams["text.usetex"] = usetex
3232
plt.rcParams["text.latex.preview"] = preview
3333

34-
Subplot = maxes.subplot_class_factory(Axes)
34+
subplot = maxes.subplot_class_factory(Axes)
3535

3636

3737
def test_window_extent(ax, usetex, preview):
@@ -61,14 +61,14 @@ def test_window_extent(ax, usetex, preview):
6161
ax.set_title("usetex=%s\npreview=%s" % (str(usetex), str(preview)))
6262

6363

64-
F = plt.figure(figsize=(2.*3, 6.5))
64+
fig = plt.figure(figsize=(2.*3, 6.5))
6565

6666
for i, usetex, preview in [[0, False, False],
6767
[1, True, False],
6868
[2, True, True]]:
69-
ax = Subplot(F, 1, 3, i + 1, usetex=usetex, preview=preview)
70-
F.add_subplot(ax)
71-
F.subplots_adjust(top=0.85)
69+
ax = subplot(fig, 1, 3, i + 1, usetex=usetex, preview=preview)
70+
fig.add_subplot(ax)
71+
fig.subplots_adjust(top=0.85)
7272

7373
test_window_extent(ax, usetex=usetex, preview=preview)
7474

0 commit comments

Comments
 (0)