def test_soma3d(): with get_fig_3d() as (_, ax): view.plot_soma3d(ax, soma_2pt_normal) np.testing.assert_allclose(ax.get_xlim(), (-10., 10.), atol=2) np.testing.assert_allclose(ax.get_ylim(), (0., 10.), atol=2) np.testing.assert_allclose(ax.get_zlim(), (-10., 10.), atol=2)
def test_soma3d(get_fig_3d): _, ax = get_fig_3d view.plot_soma3d(ax, soma_3pt_normal) assert_allclose(ax.get_xlim(), (-11., 11.), atol=2) assert_allclose(ax.get_ylim(), (-11., 11.), atol=2) assert_allclose(ax.get_zlim(), (-10., 10.), atol=2)
def test_soma3d(): with get_fig_3d() as (_, ax): view.plot_soma3d(ax, soma_2pt_normal) assert_allclose(ax.get_xlim(), (-10., 10.), atol=2) assert_allclose(ax.get_ylim(), (0., 10.), atol=2) assert_allclose(ax.get_zlim(), (-10., 10.), atol=2)
def test_soma3d(): with get_fig_3d() as (fig, ax): view.plot_soma3d(ax, soma_2pt_normal) np.testing.assert_allclose(ax.get_xlim(), (-10., 10.)) np.testing.assert_allclose(ax.get_ylim(), (0., 10.)) np.testing.assert_allclose(ax.get_zlim(), (-10., 10.))