def test_coords_to_point(): ax = Axes() # a point with respect to the axes c2p_coord = np.around(ax.coords_to_point(2, 2), decimals=4) np.testing.assert_array_equal(c2p_coord, (1.7143, 1.5, 0))
def test_coords_to_point(using_opengl_renderer): ax = Axes() # a point with respect to the axes c2p_coord = np.around(ax.coords_to_point(2, 2), decimals=4) assert np.array_equal(c2p_coord, (1.7143, 1.5, 0))