Beispiel #1
0
 def test_windRose_mph(self):
     '''Confirm that windRose returns an mpl figure and one axis'''
     fig, ax1 = graphics.windRose(self.sta.data['asos'],
                                  fname='test/test_windRose_mph.png',
                                  mph=False)
     assert_true(isinstance(fig, matplotlib.figure.Figure))
     assert_true(isinstance(ax1, matplotlib.axes.Axes))
Beispiel #2
0
 def test_windRose_mph(self):
     '''Confirm that windRose returns an mpl figure and one axis'''
     fig = graphics.windRose(self.df, fname=getTestFile('test_windRose_mph.png'),
                             mph=True)
     ntools.assert_true(isinstance(fig, matplotlib.figure.Figure))
Beispiel #3
0
 def test_windRose_kt(self):
     '''Confirm that windRose returns an mpl figure and one axis'''
     fig = graphics.windRose(self.df, fname='test/test_windRose_kt.png',
                             mph=False)
     assert_true(isinstance(fig, matplotlib.figure.Figure))