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

Skip to content

Commit 9efe7c3

Browse files
committed
Merge pull request #2177 from tbekolay/mplot3dtests
[sprint] Added mplot3d tests in mpl_toolkits.tests
2 parents 2930635 + 83da059 commit 9efe7c3

33 files changed

+59687
-3
lines changed

lib/matplotlib/testing/decorators.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,11 @@ def remove_text(figure):
110110
ax.xaxis.set_minor_formatter(ticker.NullFormatter())
111111
ax.yaxis.set_major_formatter(ticker.NullFormatter())
112112
ax.yaxis.set_minor_formatter(ticker.NullFormatter())
113+
try:
114+
ax.zaxis.set_major_formatter(ticker.NullFormatter())
115+
ax.zaxis.set_minor_formatter(ticker.NullFormatter())
116+
except AttributeError:
117+
pass
113118

114119
def test(self):
115120
baseline_dir, result_dir = _image_directories(self._func)

lib/matplotlib/tests/test_backend_pdf.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
# -*- encoding: utf-8 -*-
22

3-
from matplotlib import rcParams
3+
import io
4+
5+
import numpy as np
6+
7+
from matplotlib import cm, rcParams
48
from matplotlib import pyplot as plt
59
from matplotlib.testing.decorators import image_comparison, knownfailureif, cleanup
610

@@ -26,8 +30,6 @@ def test_use14corefonts():
2630

2731
@cleanup
2832
def test_type42():
29-
import io
30-
3133
rcParams['pdf.fonttype'] = 42
3234

3335
fig = plt.figure()
Binary file not shown.

0 commit comments

Comments
 (0)