Changeset 34ab06d in sasview


Ignore:
Timestamp:
May 8, 2008 5:35:07 PM (17 years ago)
Author:
Gervaise Alina <gervyh@…>
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:
4f63160
Parents:
f3d51f6
Message:

changed on plotpanel

File:
1 edited

Legend:

Unmodified
Added
Removed
  • guitools/PlotPanel.py

    r71c64d6 r34ab06d  
    3939        ptprev = pt 
    4040        if scale=='log': 
    41             #assert lo >0 
     41            assert lo >0 
    4242            if lo > 0 : 
    4343                lo = math.log10(lo) 
     
    6161        # Convert transformed values back to the original scale 
    6262        if scale=='log': 
    63             #if (lo <= -300) and (hi >= 300): 
    64             if (lo > 0) and (math.log(lo) <= -300): 
     63            if (lo <= -250) or (hi >= 250): 
    6564                lo=loprev 
    6665                hi=hiprev 
    6766                print "Not possible to scale" 
    68             if (lo == 0) or (lo <= -300): 
    69                 lo=loprev 
    70                 hi=hiprev 
    71                 print "Not possible to scale" 
     67            
    7268            else: 
    7369                lo,hi = math.pow(10.,lo),math.pow(10.,hi) 
     
    7571                print "possible to scale" 
    7672            
    77         print "these are low and high",lo,hi 
     73            print "these are low and high",lo,hi 
    7874 
    7975        return (lo,hi) 
Note: See TracChangeset for help on using the changeset viewer.