def test_plot_rhi(self): pl.figure() ax, pm = vis.plot_rhi(self.img[0:90,:]) pl.figure() ax, pm = vis.plot_rhi(self.img[0:90,:], th_res=0.5) pl.figure() ax, pm = vis.plot_rhi(self.img[0:90,:], refrac=False) pl.figure() ax, pm = vis.plot_rhi(self.img[0:90,:], autoext=False) pl.figure() ax, pm = vis.plot_rhi(self.img[0:90,:], r=np.arange(10), th=np.arange(90))
def test_plot_rhi(self): pl.figure() ax, pm = vis.plot_rhi(self.img[0:90, :]) pl.figure() ax, pm = vis.plot_rhi(self.img[0:90, :], th_res=0.5) pl.figure() ax, pm = vis.plot_rhi(self.img[0:90, :], refrac=False) pl.figure() ax, pm = vis.plot_rhi(self.img[0:90, :], autoext=False) pl.figure() ax, pm = vis.plot_rhi(self.img[0:90, :], r=np.arange(10), th=np.arange(90))
def test_plot_cg_rhi(self): cgax, pm = vis.plot_rhi(self.img[0:90, :], proj="cg") cgax, pm = vis.plot_rhi(self.img[0:90, :], proj="cg", ax=cgax) fig, ax = pl.subplots(2, 2) with pytest.raises(TypeError): vis.plot_rhi(self.img[0:90, :], proj="cg", ax=ax[0, 0]) cgax, pm = vis.plot_rhi(self.img[0:90, :], th_res=0.5, proj="cg") cgax, pm = vis.plot_rhi(self.img[0:90, :], proj="cg") cgax, pm = vis.plot_rhi( self.img[0:90, :], r=np.arange(10), th=np.arange(90), proj="cg" ) cgax, pm = vis.plot_rhi(self.img[0:90, :], func="contour", proj="cg") cgax, pm = vis.plot_rhi(self.img[0:90, :], func="contourf", proj="cg")
def test_plot_rhi(self): ax, pm = vis.plot_rhi(self.img[0:90, :]) ax, pm = vis.plot_rhi(self.img[0:90, :], th_res=0.5) ax, pm = vis.plot_rhi(self.img[0:90, :], th_res=0.5, ax=212) ax, pm = vis.plot_rhi(self.img[0:90, :], refrac=False) ax, pm = vis.plot_rhi(self.img[0:90, :], autoext=False) ax, pm = vis.plot_rhi(self.img[0:90, :], r=np.arange(10), th=np.arange(90)) ax, pm = vis.plot_rhi(self.img[0:90, :], func='contour') ax, pm = vis.plot_rhi(self.img[0:90, :], func='contourf')
def test_plot_cg_rhi(self): cgax, pm = vis.plot_rhi(self.img[0:90, :], proj='cg') cgax, pm = vis.plot_rhi(self.img[0:90, :], proj='cg', ax=cgax) fig, ax = pl.subplots(2, 2) with self.assertRaises(TypeError): vis.plot_rhi(self.img[0:90, :], proj='cg', ax=ax[0, 0]) cgax, pm = vis.plot_rhi(self.img[0:90, :], th_res=0.5, proj='cg') cgax, pm = vis.plot_rhi(self.img[0:90, :], proj='cg') cgax, pm = vis.plot_rhi(self.img[0:90, :], r=np.arange(10), th=np.arange(90), proj='cg') cgax, pm = vis.plot_rhi(self.img[0:90, :], func='contour', proj='cg') cgax, pm = vis.plot_rhi(self.img[0:90, :], func='contourf', proj='cg')
def test_plot_cg_rhi(self): cgax, pm = vis.plot_rhi(self.img[0:90, :], cg=True) cgax, pm = vis.plot_rhi(self.img[0:90, :], cg=True, ax=cgax) cgax, pm = vis.plot_rhi(self.img[0:90, :], th_res=0.5, cg=True) cgax, pm = vis.plot_rhi(self.img[0:90, :], refrac=False, cg=True) cgax, pm = vis.plot_rhi(self.img[0:90, :], autoext=False, cg=True) cgax, pm = vis.plot_rhi(self.img[0:90, :], r=np.arange(10), th=np.arange(90), autoext=True, cg=True) cgax, pm = vis.plot_rhi(self.img[0:90, :], func='contour', cg=True) cgax, pm = vis.plot_rhi(self.img[0:90, :], func='contourf', cg=True)
def test_plot_cg_rhi(self): cgax, pm = vis.plot_rhi(self.img[0:90, :], cg=True) cgax, pm = vis.plot_rhi(self.img[0:90, :], cg=True, ax=cgax) fig, ax = pl.subplots(2, 2) self.assertRaises(TypeError, lambda: vis.plot_rhi(self.img[0:90, :], cg=True, ax=ax[0, 0])) cgax, pm = vis.plot_rhi(self.img[0:90, :], th_res=0.5, cg=True) cgax, pm = vis.plot_rhi(self.img[0:90, :], refrac=False, cg=True) cgax, pm = vis.plot_rhi(self.img[0:90, :], autoext=False, cg=True) cgax, pm = vis.plot_rhi(self.img[0:90, :], r=np.arange(10), th=np.arange(90), autoext=True, cg=True) cgax, pm = vis.plot_rhi(self.img[0:90, :], func='contour', cg=True) cgax, pm = vis.plot_rhi(self.img[0:90, :], func='contourf', cg=True)
def test_plot_cg_rhi(self): cgax, pm = vis.plot_rhi(self.img[0:90, :], cg=True) cgax, pm = vis.plot_rhi(self.img[0:90, :], cg=True, ax=cgax) fig, ax = pl.subplots(2, 2) self.assertRaises( TypeError, lambda: vis.plot_rhi(self.img[0:90, :], cg=True, ax=ax[0, 0])) cgax, pm = vis.plot_rhi(self.img[0:90, :], th_res=0.5, cg=True) cgax, pm = vis.plot_rhi(self.img[0:90, :], refrac=False, cg=True) cgax, pm = vis.plot_rhi(self.img[0:90, :], autoext=False, cg=True) cgax, pm = vis.plot_rhi(self.img[0:90, :], r=np.arange(10), th=np.arange(90), autoext=True, cg=True) cgax, pm = vis.plot_rhi(self.img[0:90, :], func='contour', cg=True) cgax, pm = vis.plot_rhi(self.img[0:90, :], func='contourf', cg=True)
def test_plot_rhi(self): ax, pm = vis.plot_rhi(self.img[0:90, :]) ax, pm = vis.plot_rhi(self.img[0:90, :], th_res=0.5) ax, pm = vis.plot_rhi(self.img[0:90, :], th_res=0.5, ax=212) ax, pm = vis.plot_rhi(self.img[0:90, :], r=np.arange(10), th=np.arange(90)) ax, pm = vis.plot_rhi(self.img[0:90, :], func='contour') ax, pm = vis.plot_rhi(self.img[0:90, :], func='contourf') ax, pm = vis.plot_rhi(self.img[0:90, :], r=np.arange(10), th=np.arange(90), proj=self.proj, site=(0, 0, 0))
def test_plot_cg_rhi(self): # DeprecationTests with self.assertWarns(DeprecationWarning): cgax, pm = vis.plot_rhi(self.img, autoext=True, cg=True) with self.assertWarns(DeprecationWarning): cgax, pm = vis.plot_rhi(self.img, autoext=False, cg=True) with self.assertWarns(DeprecationWarning): cgax, pm = vis.plot_rhi(self.img, refrac=True, cg=True) with self.assertWarns(DeprecationWarning): cgax, pm = vis.plot_rhi(self.img, refrac=False, cg=True) cgax, pm = vis.plot_rhi(self.img[0:90, :], cg=True) cgax, pm = vis.plot_rhi(self.img[0:90, :], proj='cg') cgax, pm = vis.plot_rhi(self.img[0:90, :], cg=True, ax=cgax) fig, ax = pl.subplots(2, 2) self.assertRaises( TypeError, lambda: vis.plot_rhi(self.img[0:90, :], cg=True, ax=ax[0, 0])) cgax, pm = vis.plot_rhi(self.img[0:90, :], th_res=0.5, cg=True) cgax, pm = vis.plot_rhi(self.img[0:90, :], cg=True) cgax, pm = vis.plot_rhi(self.img[0:90, :], r=np.arange(10), th=np.arange(90), cg=True) cgax, pm = vis.plot_rhi(self.img[0:90, :], func='contour', cg=True) cgax, pm = vis.plot_rhi(self.img[0:90, :], func='contourf', cg=True) with self.assertWarns(UserWarning): cgax, pm = vis.plot_rhi(self.img[0:90, :], func='contourf', proj=self.proj, site=(0, 0, 0), cg=True)
def test_plot_rhi(self): # DeprecationTests with self.assertWarns(DeprecationWarning): ax, pm = vis.plot_rhi(self.img, autoext=True) with self.assertWarns(DeprecationWarning): ax, pm = vis.plot_rhi(self.img, autoext=False) with self.assertWarns(DeprecationWarning): ax, pm = vis.plot_rhi(self.img, refrac=True) with self.assertWarns(DeprecationWarning): ax, pm = vis.plot_rhi(self.img, refrac=False) ax, pm = vis.plot_rhi(self.img[0:90, :]) ax, pm = vis.plot_rhi(self.img[0:90, :], th_res=0.5) ax, pm = vis.plot_rhi(self.img[0:90, :], th_res=0.5, ax=212) ax, pm = vis.plot_rhi(self.img[0:90, :], r=np.arange(10), th=np.arange(90)) ax, pm = vis.plot_rhi(self.img[0:90, :], func='contour') ax, pm = vis.plot_rhi(self.img[0:90, :], func='contourf') ax, pm = vis.plot_rhi(self.img[0:90, :], r=np.arange(10), th=np.arange(90), proj=self.proj, site=(0, 0, 0))
def test_plot_cg_rhi(self): # DeprecationTests with self.assertWarns(DeprecationWarning): cgax, pm = vis.plot_rhi(self.img, autoext=True, cg=True) with self.assertWarns(DeprecationWarning): cgax, pm = vis.plot_rhi(self.img, autoext=False, cg=True) with self.assertWarns(DeprecationWarning): cgax, pm = vis.plot_rhi(self.img, refrac=True, cg=True) with self.assertWarns(DeprecationWarning): cgax, pm = vis.plot_rhi(self.img, refrac=False, cg=True) cgax, pm = vis.plot_rhi(self.img[0:90, :], cg=True) cgax, pm = vis.plot_rhi(self.img[0:90, :], proj='cg') cgax, pm = vis.plot_rhi(self.img[0:90, :], cg=True, ax=cgax) fig, ax = pl.subplots(2, 2) self.assertRaises(TypeError, lambda: vis.plot_rhi(self.img[0:90, :], cg=True, ax=ax[0, 0])) cgax, pm = vis.plot_rhi(self.img[0:90, :], th_res=0.5, cg=True) cgax, pm = vis.plot_rhi(self.img[0:90, :], cg=True) cgax, pm = vis.plot_rhi(self.img[0:90, :], r=np.arange(10), th=np.arange(90), cg=True) cgax, pm = vis.plot_rhi(self.img[0:90, :], func='contour', cg=True) cgax, pm = vis.plot_rhi(self.img[0:90, :], func='contourf', cg=True) with self.assertWarns(UserWarning): cgax, pm = vis.plot_rhi(self.img[0:90, :], func='contourf', proj=self.proj, site=(0, 0, 0), cg=True)