Changeset c080e542 in sasview for plottools/src/danse/common
- Timestamp:
- Jan 23, 2013 12:22:32 PM (12 years ago)
- Branches:
- master, 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, costrafo411, magnetic_scatt, release-4.1.1, release-4.1.2, release-4.2.2, release_4.0.1, ticket-1009, ticket-1094-headless, ticket-1242-2d-resolution, ticket-1243, ticket-1249, ticket885, unittest-saveload
- Children:
- 9e9e9a5
- Parents:
- a30864b1
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
plottools/src/danse/common/plottools/PlotPanel.py
r318b5bbb rc080e542 1628 1628 1629 1629 # find max and min values of qx and qy 1630 xmax = numpy.max(self.qx_data)1631 xmin = numpy.min(self.qx_data)1632 ymax = numpy.max(self.qy_data)1633 ymin = numpy.min(self.qy_data)1630 xmax = self.qx_data.max() 1631 xmin = self.qx_data.min() 1632 ymax = self.qy_data.max() 1633 ymin = self.qy_data.min() 1634 1634 1635 1635 # calculate the range of qx and qy: this way, it is a little … … 1647 1647 1648 1648 # max and min taking account of the bin sizes 1649 xmax = xmax + xstep / 2 1650 xmin = xmin - xstep / 2 1651 ymax = ymax + ystep / 2 1652 ymin = ymin - ystep / 2 1649 xmax = xmax + xstep / 2.0 1650 xmin = xmin - xstep / 2.0 1651 ymax = ymax + ystep / 2.0 1652 ymin = ymin - ystep / 2.0 1653 1653 1654 1654 # store x and y bin centers in q space 1655 x_bins = numpy.arange(xmin, xmax + xstep / 10, xstep) 1656 y_bins = numpy.arange(ymin, ymax + ystep / 10, ystep) 1655 x_bins = numpy.linspace(xmin, xmax, npix_x) 1656 y_bins = numpy.linspace(ymin, ymax, npix_y) 1657 #x_bins = numpy.arange(xmin, xmax + xstep / 10.0, xstep) 1658 #y_bins = numpy.arange(ymin, ymax + ystep / 10.0, ystep) 1657 1659 1658 1660 #set x_bins and y_bins
Note: See TracChangeset
for help on using the changeset viewer.