Skip to content

Commit

Permalink
Added mplot3d tests in mpl_toolkits.tests
Browse files Browse the repository at this point in the history
- This complements PR matplotlib#2135
- Also tests issue matplotlib#1933, which was fixed but untested
- Also changes the remove_text decorator,
  to remove text on the z-axis.
  • Loading branch information
tbekolay committed Jun 29, 2013
1 parent 85123bb commit 83da059
Show file tree
Hide file tree
Showing 33 changed files with 59,687 additions and 3 deletions.
5 changes: 5 additions & 0 deletions lib/matplotlib/testing/decorators.py
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,11 @@ def remove_text(figure):
ax.xaxis.set_minor_formatter(ticker.NullFormatter())
ax.yaxis.set_major_formatter(ticker.NullFormatter())
ax.yaxis.set_minor_formatter(ticker.NullFormatter())
try:
ax.zaxis.set_major_formatter(ticker.NullFormatter())
ax.zaxis.set_minor_formatter(ticker.NullFormatter())
except AttributeError:
pass

def test(self):
baseline_dir, result_dir = _image_directories(self._func)
Expand Down
8 changes: 5 additions & 3 deletions lib/matplotlib/tests/test_backend_pdf.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
# -*- encoding: utf-8 -*-

from matplotlib import rcParams
import io

import numpy as np

from matplotlib import cm, rcParams
from matplotlib import pyplot as plt
from matplotlib.testing.decorators import image_comparison, knownfailureif, cleanup

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

@cleanup
def test_type42():
import io

rcParams['pdf.fonttype'] = 42

fig = plt.figure()
Expand Down
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit 83da059

Please sign in to comment.