Changeset 9266c66 in sasview


Ignore:
Timestamp:
May 13, 2010 5:16:19 PM (15 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:
4470b10
Parents:
fd50e2f
Message:

improved the plotting w/ data=0.0 point

File:
1 edited

Legend:

Unmodified
Added
Removed
  • guiframe/local_perspectives/plotting/masking.py

    rdb72faf r9266c66  
    451451        #self.plotpanel.add_image(self.newplot) 
    452452         
     453        
    453454        ##use this method 
    454         #set zmax and zmin to plot: Fix it w/ data. 
    455         if self.plotpanel.scale == 'log': 
    456             zmax = math.log(max(self.data.data[self.data.data>0])) 
    457             zmin = math.log(min(self.data.data[self.data.data>0])) 
    458         else: 
    459             zmax = max(self.data.data[self.data.data>0]) 
    460             zmin = min(self.data.data[self.data.data>0]) 
    461455        #plot     
    462456        plot = self.plotpanel.image(data= temp_mask, 
     
    467461                       ymin= self.data.ymin, 
    468462                       ymax= self.data.ymax, 
    469                        zmin= zmin, 
    470                        zmax= zmax, 
     463                       zmin= None, 
     464                       zmax= None, 
    471465                       cmap= self.cmap, 
    472466                       color=0,symbol=0,label=self.data.name) 
Note: See TracChangeset for help on using the changeset viewer.