Changeset c080e542 in sasview


Ignore:
Timestamp:
Jan 23, 2013 12:22:32 PM (12 years ago)
Author:
Jae Cho <jhjcho@…>
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
Message:

minor fixes in 2d image get_bin

File:
1 edited

Legend:

Unmodified
Added
Removed
  • plottools/src/danse/common/plottools/PlotPanel.py

    r318b5bbb rc080e542  
    16281628         
    16291629        # 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() 
    16341634         
    16351635        # calculate the range of qx and qy: this way, it is a little 
     
    16471647 
    16481648        # 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 
    16531653         
    16541654        # 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) 
    16571659       
    16581660        #set x_bins and y_bins 
Note: See TracChangeset for help on using the changeset viewer.