Changeset f5cec7c in sasview for src


Ignore:
Timestamp:
Oct 30, 2018 7:40:47 AM (5 years ago)
Author:
Piotr Rozyczko <piotr.rozyczko@…>
Branches:
ESS_GUI, ESS_GUI_batch_fitting, ESS_GUI_bumps_abstraction, ESS_GUI_iss1116, ESS_GUI_opencl, ESS_GUI_ordering, ESS_GUI_sync_sascalc
Children:
04e1c80
Parents:
0c83303
Message:

Fixed orientation bug for some 2D plots. SASVIEW-1211. Also solves
SASVIEW-980

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/sas/qtgui/Plotting/Plotter2D.py

    r722b7d6 rf5cec7c  
    113113        """ 
    114114        # Toggle the scale 
    115         zmin_temp = self.zmin if self.zmin else MIN_Z 
     115        zmin_temp = self.zmin 
    116116        zmax_temp = self.zmax 
    117117        # self.scale predefined in the baseclass 
     
    422422        if self.scale == 'log_{10}': 
    423423            try: 
    424                 if  self.zmin <= 0  and len(output[output > 0]) > 0: 
     424                if  self.zmin is None  and len(output[output > 0]) > 0: 
    425425                    zmin_temp = self.zmin 
    426426                    output[output > 0] = numpy.log10(output[output > 0]) 
     
    434434            except: 
    435435                #Too many problems in 2D plot with scale 
    436                 output[output > 0] = numpy.log10(output[output > 0]) 
    437436                pass 
    438437 
     
    450449            else: 
    451450                self.im = self.ax.imshow(output, interpolation='nearest', 
     451                                origin='lower', 
    452452                                vmin=zmin_temp, vmax=zmax_temp, 
    453453                                cmap=self.cmap, 
Note: See TracChangeset for help on using the changeset viewer.