Skip to content

Commit

Permalink
more tests
Browse files Browse the repository at this point in the history
  • Loading branch information
scottshambaugh committed Dec 15, 2023
1 parent 4cf58bd commit ad857cb
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion tests/test_AxesStereo.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,9 +80,17 @@ def test_AxesStereo3D():
def plotting_tests_2d_pairwise():
# test plot and scatter
x, y, z = _testdata()['trefoil']
axstereo = AxesStereo2D()
axstereo = AxesStereo2D(focal_plane=-1.0)
axstereo.plot(x, y, z, c='k', alpha=0.2)
axstereo.scatter(x, y, z, c=z, cmap='viridis', s=10)
axstereo.grid(True)
axstereo.set_title('focal_plane=-1')

axstereo = AxesStereo2D(focal_plane=1.0)
axstereo.plot(x, y, z, c='k', alpha=0.2)
axstereo.scatter(x, y, z, c=z, cmap='viridis', s=10)
axstereo.grid(True)
axstereo.set_title('focal_plane=1')

# test bar and stem
x = y = z = np.arange(10)
Expand Down

0 comments on commit ad857cb

Please sign in to comment.