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))
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))
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))