- Timestamp:
- Sep 23, 2016, 3:54:24 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tools/drawing_tools.py
r1089 r1117 1763 1763 elif u == 'Ks-1': lu='$Ks^{-1}$' 1764 1764 elif u == 'K s-1': lu='$Ks^{-1}$' 1765 elif u == 'K/day': lu='$Kday^{-1}$' 1766 elif u == 'Kday-1': lu='$Kday^{-1}$' 1767 elif u == 'K day-1': lu='$Kday^{-1}$' 1765 1768 elif u == 'kg/kg': lu='$kgkg^{-1}$' 1766 1769 elif u == 'kgkg-1': lu='$kgkg^{-1}$' … … 4021 4024 typos = pretty_int(y.min(),y.max(),5) 4022 4025 txlabels = list(txpos) 4023 for i in range(len(txlabels)): txlabels[i] = str(txlabels[i])4026 for i in range(len(txlabels)): txlabels[i] = '{:6g}'.format(txlabels[i]) 4024 4027 tylabels = list(typos) 4025 for i in range(len(tylabels)): tylabels[i] = str(tylabels[i])4028 for i in range(len(tylabels)): tylabels[i] = '{:6g}'.format(tylabels[i]) 4026 4029 4027 4030 # set the limits of the plot to the limits of the data
Note: See TracChangeset
for help on using the changeset viewer.