range parameter is now autoscaled to account for -log option, i.e. range is always given as bounds of original data

This commit is contained in:
Aritra Chakraborty 2015-05-13 13:45:26 +00:00
parent b0a37497a1
commit 3e8f16c515
1 changed files with 1 additions and 1 deletions

View File

@ -114,7 +114,7 @@ for name in filenames:
# convert data to values between 0 and 1 and arrange according to given options
if options.dimension != []: table.data = table.data.reshape(options.dimension[1],options.dimension[0])
if options.abs: table.data = np.abs(table.data)
if options.log: table.data = np.log10(table.data)
if options.log: table.data = np.log10(table.data);options.range = np.log10(options.range)
if options.flipLR: table.data = np.fliplr(table.data)
if options.flipUD: table.data = np.flipud(table.data)
if np.all(np.array(options.range) == 0.0): options.range = [table.data.min(),table.data.max()]