Changes in / [6c7ebb88:f994f188] in sasview
- Location:
- src/sas/qtgui/Plotting
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
src/sas/qtgui/Plotting/Plotter.py
r033b1f2 r6edd344 91 91 # make sure we have some function to operate on 92 92 if self.data.xtransform is None: 93 if self.data.isSesans: 94 self.data.xtransform='x' 95 else: 96 self.data.xtransform = 'log10(x)' 93 self.data.xtransform = 'log10(x)' 97 94 if self.data.ytransform is None: 98 if self.data.isSesans: 99 self.data.ytransform='y' 100 else: 101 self.data.ytransform = 'log10(y)' 95 self.data.ytransform = 'log10(y)' 102 96 #Added condition to Dmax explorer from P(r) perspective 103 97 if self.data._xaxis == 'D_{max}': -
src/sas/qtgui/Plotting/UnitTesting/PlotterTest.py
rd32a594 r6edd344 81 81 """ Ensure that Sesans data is plotted in linear cooredinates""" 82 82 data = Data1D(x=[1.0, 2.0, 3.0], 83 y=[ -10.0, -11.0, -12.0],83 y=[10.0, 11.0, 12.0], 84 84 dx=[0.1, 0.2, 0.3], 85 85 dy=[0.1, 0.2, 0.3]) … … 97 97 self.assertEqual(self.plotter.ax.get_xscale(), 'linear') 98 98 self.assertEqual(self.plotter.ax.get_yscale(), 'linear') 99 self.assertEqual(self.plotter.data.ytransform, "y")100 99 self.assertTrue(FigureCanvas.draw_idle.called) 101 100
Note: See TracChangeset
for help on using the changeset viewer.