def test_plot_plan_and_vert(self): x = np.arange(0, 10) y = np.arange(0, 10) z = np.arange(0, 5) dataxy = np.zeros((len(x), len(y))) datazx = np.zeros((len(z), len(x))) datazy = np.zeros((len(z), len(y))) vol = np.zeros((len(z), len(y), len(x))) vis.plot_plan_and_vert(x, y, z, dataxy, datazx, datazy) vis.plot_plan_and_vert(x, y, z, dataxy, datazx, datazy, title='Test') tmp = tempfile.NamedTemporaryFile(mode='w+b').name vis.plot_plan_and_vert(x, y, z, dataxy, datazx, datazy, saveto=tmp) vis.plot_max_plan_and_vert(x, y, z, vol)
def test_plot_plan_and_vert(self): x = np.arange(0, 10) y = np.arange(0, 10) z = np.arange(0, 5) dataxy = np.zeros((len(x), len(y))) datazx = np.zeros((len(z), len(x))) datazy = np.zeros((len(z), len(y))) vol = np.zeros((len(z), len(y), len(x))) vis.plot_plan_and_vert(x, y, z, dataxy, datazx, datazy) vis.plot_plan_and_vert(x, y, z, dataxy, datazx, datazy, title='Test') vis.plot_plan_and_vert(x, y, z, dataxy, datazx, datazy, saveto=NamedTemporaryFile(mode='w+b').name) vis.plot_max_plan_and_vert(x, y, z, vol)