Changeset d6b8a1d in sasview for src/sas/qtgui/Plotting/Plotter2D.py
- Timestamp:
- Nov 9, 2017 6:43:56 AM (6 years ago)
- Branches:
- ESS_GUI, ESS_GUI_Docs, ESS_GUI_batch_fitting, ESS_GUI_bumps_abstraction, ESS_GUI_iss1116, ESS_GUI_iss879, ESS_GUI_iss959, ESS_GUI_opencl, ESS_GUI_ordering, ESS_GUI_sync_sascalc
- Children:
- 53c771e
- Parents:
- fbfc488
- git-author:
- Piotr Rozyczko <rozyczko@…> (11/07/17 06:29:59)
- git-committer:
- Piotr Rozyczko <rozyczko@…> (11/09/17 06:43:56)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/sas/qtgui/Plotting/Plotter2D.py
rfbfc488 rd6b8a1d 3 3 import pylab 4 4 import functools 5 import logging 5 6 6 7 from PyQt5 import QtCore … … 126 127 zmax_temp = self.zmax 127 128 # self.scale predefined in the baseclass 129 # in numpy > 1.12 power(int, -int) raises ValueException 130 # "Integers to negative integer powers are not allowed." 128 131 if self.scale == 'log_{10}': 129 132 if self.zmin is not None: 130 zmin_temp = numpy.power(10 , self.zmin)133 zmin_temp = numpy.power(10.0, self.zmin) 131 134 if self.zmax is not None: 132 zmax_temp = numpy.power(10 , self.zmax)135 zmax_temp = numpy.power(10.0, self.zmax) 133 136 else: 134 137 if self.zmin is not None: … … 289 292 new_plot.is_data = True 290 293 GuiUtils.updateModelItemWithPlot(self._item, new_plot, new_plot.id) 294 291 295 self.manager.communicator.plotUpdateSignal.emit([new_plot]) 292 296
Note: See TracChangeset
for help on using the changeset viewer.