Removed numpy dependence in examples.
This commit is contained in:
parent
a4dfc6f751
commit
9f0532a7d5
3 changed files with 1 additions and 4 deletions
|
@ -1,7 +1,6 @@
|
||||||
from quoracle import *
|
from quoracle import *
|
||||||
import matplotlib
|
import matplotlib
|
||||||
import matplotlib.pyplot as plt
|
import matplotlib.pyplot as plt
|
||||||
import numpy as np
|
|
||||||
|
|
||||||
|
|
||||||
def main():
|
def main():
|
||||||
|
|
|
@ -2,7 +2,6 @@ from quoracle import *
|
||||||
import datetime
|
import datetime
|
||||||
import matplotlib
|
import matplotlib
|
||||||
import matplotlib.pyplot as plt
|
import matplotlib.pyplot as plt
|
||||||
import numpy as np
|
|
||||||
|
|
||||||
|
|
||||||
def main():
|
def main():
|
||||||
|
|
|
@ -8,7 +8,6 @@ from quoracle import *
|
||||||
import itertools
|
import itertools
|
||||||
import matplotlib
|
import matplotlib
|
||||||
import matplotlib.pyplot as plt
|
import matplotlib.pyplot as plt
|
||||||
import numpy as np
|
|
||||||
|
|
||||||
|
|
||||||
def main():
|
def main():
|
||||||
|
@ -25,7 +24,7 @@ def main():
|
||||||
}
|
}
|
||||||
qs = QuorumSystem(reads=a*c + b*d)
|
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', '*'])
|
markers = itertools.cycle(['o', 'v', '^', 'p', '*'])
|
||||||
fig, ax = plt.subplots(figsize=(3.25, 2.5))
|
fig, ax = plt.subplots(figsize=(3.25, 2.5))
|
||||||
for fr in dist.keys():
|
for fr in dist.keys():
|
||||||
|
|
Loading…
Reference in a new issue