Changeset 34ab06d in sasview
- Timestamp:
- May 8, 2008 5:35:07 PM (17 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:
- 4f63160
- Parents:
- f3d51f6
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
guitools/PlotPanel.py
r71c64d6 r34ab06d 39 39 ptprev = pt 40 40 if scale=='log': 41 #assert lo >041 assert lo >0 42 42 if lo > 0 : 43 43 lo = math.log10(lo) … … 61 61 # Convert transformed values back to the original scale 62 62 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): 65 64 lo=loprev 66 65 hi=hiprev 67 66 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 72 68 else: 73 69 lo,hi = math.pow(10.,lo),math.pow(10.,hi) … … 75 71 print "possible to scale" 76 72 77 print "these are low and high",lo,hi73 print "these are low and high",lo,hi 78 74 79 75 return (lo,hi)
Note: See TracChangeset
for help on using the changeset viewer.