Пример #1
0
 def test_1d_bin_numeric_axis(self):
     fig, ax = plt.subplots()
     x_axis = mantid.api.NumericAxis.create(2)
     x_axis.setValue(0, 3.)
     x_axis.setValue(1, 5.)
     ws_local = CloneWorkspace(self.ws2d_histo, StoreInADS=False)
     ws_local.replaceAxis(1, x_axis)
     funcs.plot(ax, ws_local, 'rs', specNum=1, axis=MantidAxType.BIN)
Пример #2
0
 def test_1d_x_axes_label_numeric_axis_bin_plot(self):
     fig, ax = plt.subplots()
     x_axis = mantid.api.NumericAxis.create(2)
     x_axis.setValue(0, 3.)
     x_axis.setValue(1, 5.)
     ws_local = CloneWorkspace(self.ws2d_histo_non_dist, StoreInADS=False)
     ws_local.replaceAxis(1, x_axis)
     funcs.plot(ax, ws_local, 'rs', specNum=1, axis=MantidAxType.BIN)
     self.assertEqual(ax.get_xlabel(), "")