Skip to content

Commit

Permalink
Update base_plot.py
Browse files Browse the repository at this point in the history
  • Loading branch information
tsikes committed Feb 24, 2021
1 parent a99ae69 commit 55c92ea
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/plot/base_plot.py
Original file line number Diff line number Diff line change
Expand Up @@ -283,7 +283,7 @@ def RoundToSigFigs(x, p):
max_data = data.max()
else:
C = np.abs(max_data-min_data)
C *= 10**(OoM(max_data) + 1.75) # scaling factor TODO: + 1 looks loglike, + 2 linear like
C *= 10**(OoM(max_data) + 2) # scaling factor TODO: + 1 looks loglike, + 2 linear like
C = RoundToSigFigs(C, 1) # round to 1 significant figure
str = 'axes.set_{0:s}scale("{1:s}", C={2:e})'.format(coord, 'bisymlog', C)

Expand Down

0 comments on commit 55c92ea

Please sign in to comment.