Skip to content

Commit

Permalink
add simple test
Browse files Browse the repository at this point in the history
  • Loading branch information
jhaigh0 committed Sep 17, 2024
1 parent 9af6452 commit c32c50d
Showing 1 changed file with 10 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,12 @@ def setUpClass(cls):
VerticalAxisValues=[4, 6, 8],
OutputWorkspace="ws2d_histo",
)
cls.ws2d_histo_negative_errors = CreateWorkspace(
DataX=[1, 2, 3, 4],
DataY=[10, 20, 30, 40],
DataE=[1, -2, 3, -4],
OutputWorkspace="ws2d_histo_negative_errors"
)
cls.ws2d_histo_non_dist = CreateWorkspace(
DataX=[10, 20, 30, 10, 20, 30],
DataY=[2, 3, 4, 5],
Expand Down Expand Up @@ -151,6 +157,10 @@ def test_1d_errorbars(self):
funcs.errorbar(ax, self.ws2d_histo, specNum=2, linewidth=6)
funcs.errorbar(ax, self.ws_MD_1d, "bo")

def test_1d_errorbars_with_negative_errors(self):
_, ax = plt.subplots()
funcs.errorbar(ax, self.ws2d_histo_negative_errors, specNum=1)

def test_1d_scatter(self):
fig, ax = plt.subplots()
funcs.scatter(ax, self.ws2d_histo, specNum=1)
Expand Down

0 comments on commit c32c50d

Please sign in to comment.