diff options
author | David Robillard <d@drobilla.net> | 2021-09-18 19:56:39 -0400 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2021-09-18 19:56:39 -0400 |
commit | 2b42a5f019d4ca768b2c84c10f65dc24ec5e86d5 (patch) | |
tree | 919a0eddee43f04e11e96a561ca46f90a9a0ffe0 | |
parent | 405dc0f45c69e78480899de7c495871f73bfbbc4 (diff) | |
download | zix-2b42a5f019d4ca768b2c84c10f65dc24ec5e86d5.tar.gz zix-2b42a5f019d4ca768b2c84c10f65dc24ec5e86d5.tar.bz2 zix-2b42a5f019d4ca768b2c84c10f65dc24ec5e86d5.zip |
Fix minor quality issues in plot.py
-rwxr-xr-x | scripts/plot.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/scripts/plot.py b/scripts/plot.py index a59e26d..4bffa86 100755 --- a/scripts/plot.py +++ b/scripts/plot.py @@ -8,8 +8,8 @@ import os import sys import matplotlib + from matplotlib import pyplot -from matplotlib.pyplot import * matplotlib.rc('text', **{ 'usetex': True}) @@ -28,9 +28,9 @@ class SensibleScalarFormatter(matplotlib.ticker.ScalarFormatter): self.set_powerlimits([-6, 6]) self.set_scientific(True) - def _set_orderOfMagnitude(self, range): + def _set_orderOfMagnitude(self, value_range): # Calculate "best" order in the usual way - matplotlib.ticker.ScalarFormatter._set_orderOfMagnitude(self, range) + matplotlib.ticker.ScalarFormatter._set_orderOfMagnitude(self, value_range) # Round down to sensible (millions, billions, etc) order self.orderOfMagnitude = self.orderOfMagnitude - (self.orderOfMagnitude % 3) @@ -66,7 +66,7 @@ for i in range(n_plots): times.append([]) for line in file: if line[0] == '#': - continue; + continue fields = line.split() num = 0 |