Changes in src/sas/qtgui/Plotting/UnitTesting/PlotterTest.py [3e8dee3:53c771e] in sasview
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/sas/qtgui/Plotting/UnitTesting/PlotterTest.py
r3e8dee3 r53c771e 77 77 self.assertTrue(FigureCanvas.draw_idle.called) 78 78 self.plotter.figure.clf() 79 80 def testPlotWithSesans(self): 81 """ Ensure that Sesans data is plotted in linear cooredinates""" 82 data = Data1D(x=[1.0, 2.0, 3.0], 83 y=[10.0, 11.0, 12.0], 84 dx=[0.1, 0.2, 0.3], 85 dy=[0.1, 0.2, 0.3]) 86 data.title = "Sesans data" 87 data.name = "Test Sesans" 88 data.isSesans = True 89 data.id = 2 90 91 self.plotter.data = data 92 self.plotter.show() 93 FigureCanvas.draw = MagicMock() 94 95 self.plotter.plot(hide_error=True) 96 97 self.assertEqual(self.plotter.ax.get_xscale(), 'linear') 98 self.assertEqual(self.plotter.ax.get_yscale(), 'linear') 99 self.assertTrue(FigureCanvas.draw.called) 79 100 80 101 def testCreateContextMenuQuick(self):
Note: See TracChangeset
for help on using the changeset viewer.