From 9f0532a7d53f96dc25bdcde9c56d2fea9bfa6f4f Mon Sep 17 00:00:00 2001 From: Michael Whittaker Date: Sun, 7 Feb 2021 12:07:55 -0800 Subject: [PATCH] Removed numpy dependence in examples. --- examples/plot_load_distribution.py | 1 - examples/plot_node_loads.py | 1 - examples/plot_workload_distribution.py | 3 +-- 3 files changed, 1 insertion(+), 4 deletions(-) diff --git a/examples/plot_load_distribution.py b/examples/plot_load_distribution.py index 1d2a376..fe3baca 100644 --- a/examples/plot_load_distribution.py +++ b/examples/plot_load_distribution.py @@ -1,7 +1,6 @@ from quoracle import * import matplotlib import matplotlib.pyplot as plt -import numpy as np def main(): diff --git a/examples/plot_node_loads.py b/examples/plot_node_loads.py index e4ded1b..af1eba8 100644 --- a/examples/plot_node_loads.py +++ b/examples/plot_node_loads.py @@ -2,7 +2,6 @@ from quoracle import * import datetime import matplotlib import matplotlib.pyplot as plt -import numpy as np def main(): diff --git a/examples/plot_workload_distribution.py b/examples/plot_workload_distribution.py index 2db43cc..c60b13e 100644 --- a/examples/plot_workload_distribution.py +++ b/examples/plot_workload_distribution.py @@ -8,7 +8,6 @@ from quoracle import * import itertools import matplotlib import matplotlib.pyplot as plt -import numpy as np def main(): @@ -25,7 +24,7 @@ def main(): } qs = QuorumSystem(reads=a*c + b*d) - xs = np.arange(0, 1.01, 0.01) + xs = [0.01 * i for i in range(101)] markers = itertools.cycle(['o', 'v', '^', 'p', '*']) fig, ax = plt.subplots(figsize=(3.25, 2.5)) for fr in dist.keys():