From 2b42a5f019d4ca768b2c84c10f65dc24ec5e86d5 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sat, 18 Sep 2021 19:56:39 -0400 Subject: Fix minor quality issues in plot.py --- scripts/plot.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'scripts') 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 -- cgit v1.2.1