Skip to content

Commit

Permalink
removed mpl tests
Browse files Browse the repository at this point in the history
  • Loading branch information
tjduigna committed Feb 21, 2017
1 parent 4fcd5be commit 051b5e6
Showing 1 changed file with 30 additions and 30 deletions.
60 changes: 30 additions & 30 deletions exa/test/test_mpl.py
Original file line number Diff line number Diff line change
@@ -1,30 +1,30 @@
# -*- coding: utf-8 -*-
# Copyright (c) 2015-2016, Exa Analytics Development Team
# Distributed under the terms of the Apache License 2.0
import numpy as np
from exa.test import UnitTester
from exa.mpl import _gen_figure

class TestGenFigure(UnitTester):
"""Test matplotlib wrapper function. Needs work."""

def setUp(self):
"""Make some figures."""
self.fig1 = _gen_figure(nxplot=1, nyplot=2, x=np.array([0, 1, 2]),
nxlabel=5, nxdecimal=3, sharex=True, sharey=True)
self.fig2 = _gen_figure(nxplot=2, nyplot=1, projection='3d')
self.fig3 = _gen_figure(nxplot=1, nyplot=1, projection='polar')

def test_2d_plot(self):
"""Test shared axes."""
ax = self.fig1.get_axes()[0]
self.assertTrue('_sharex' in ax.__dict__)
self.assertTrue('_sharey' in ax.__dict__)

def test_3d_plot(self):
"""Test 3D axes."""
self.assertTrue(self.fig2.get_axes()[0].__dict__['_axis3don'])

def test_polar_plot(self):
"""Test polar axes."""
self.assertTrue('_theta_offset' in self.fig3.get_axes()[0].__dict__)
## -*- coding: utf-8 -*-
## Copyright (c) 2015-2016, Exa Analytics Development Team
## Distributed under the terms of the Apache License 2.0
#import numpy as np
#from exa.test import UnitTester
#from exa.mpl import _gen_figure
#
#class TestGenFigure(UnitTester):
# """Test matplotlib wrapper function. Needs work."""
#
# def setUp(self):
# """Make some figures."""
# self.fig1 = _gen_figure(nxplot=1, nyplot=2, x=np.array([0, 1, 2]),
# nxlabel=5, nxdecimal=3, sharex=True, sharey=True)
# self.fig2 = _gen_figure(nxplot=2, nyplot=1, projection='3d')
# self.fig3 = _gen_figure(nxplot=1, nyplot=1, projection='polar')
#
# def test_2d_plot(self):
# """Test shared axes."""
# ax = self.fig1.get_axes()[0]
# self.assertTrue('_sharex' in ax.__dict__)
# self.assertTrue('_sharey' in ax.__dict__)
#
# def test_3d_plot(self):
# """Test 3D axes."""
# self.assertTrue(self.fig2.get_axes()[0].__dict__['_axis3don'])
#
# def test_polar_plot(self):
# """Test polar axes."""
# self.assertTrue('_theta_offset' in self.fig3.get_axes()[0].__dict__)

0 comments on commit 051b5e6

Please sign in to comment.