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:
parent
b0a37497a1
commit
3e8f16c515
|
@ -114,7 +114,7 @@ for name in filenames:
|
||||||
# convert data to values between 0 and 1 and arrange according to given options
|
# 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.dimension != []: table.data = table.data.reshape(options.dimension[1],options.dimension[0])
|
||||||
if options.abs: table.data = np.abs(table.data)
|
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.flipLR: table.data = np.fliplr(table.data)
|
||||||
if options.flipUD: table.data = np.flipud(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()]
|
if np.all(np.array(options.range) == 0.0): options.range = [table.data.min(),table.data.max()]
|
||||||
|
|
Loading…
Reference in New Issue