Tidy up
This commit is contained in:
parent
b99abbc291
commit
1913e04594
@ -17,8 +17,6 @@ plt.rcParams.update(params)
|
|||||||
|
|
||||||
def plot_1_0():
|
def plot_1_0():
|
||||||
files = [
|
files = [
|
||||||
# "data/hp/burn_in_time/unordered_1_0_1421110368.txt",
|
|
||||||
# "data/hp/burn_in_time/ordered_1_0_611577739.txt",
|
|
||||||
"data/hp/burn_in_time/unordered_1_0.txt",
|
"data/hp/burn_in_time/unordered_1_0.txt",
|
||||||
"data/hp/burn_in_time/ordered_1_0.txt",
|
"data/hp/burn_in_time/ordered_1_0.txt",
|
||||||
]
|
]
|
||||||
@ -65,8 +63,6 @@ def plot_1_0():
|
|||||||
|
|
||||||
def plot_2_4():
|
def plot_2_4():
|
||||||
files = [
|
files = [
|
||||||
# "data/hp/burn_in_time/unordered_2_4_1212892317.txt",
|
|
||||||
# "data/hp/burn_in_time/ordered_2_4_2408603856.txt",
|
|
||||||
"data/hp/burn_in_time/unordered_2_4.txt",
|
"data/hp/burn_in_time/unordered_2_4.txt",
|
||||||
"data/hp/burn_in_time/ordered_2_4.txt",
|
"data/hp/burn_in_time/ordered_2_4.txt",
|
||||||
]
|
]
|
||||||
|
|||||||
@ -17,6 +17,7 @@ params = {
|
|||||||
}
|
}
|
||||||
plt.rcParams.update(params)
|
plt.rcParams.update(params)
|
||||||
|
|
||||||
|
|
||||||
def plot_timing(indir, outdir):
|
def plot_timing(indir, outdir):
|
||||||
if not (path := Path(outdir)).exists():
|
if not (path := Path(outdir)).exists():
|
||||||
makedirs(path)
|
makedirs(path)
|
||||||
@ -25,14 +26,10 @@ def plot_timing(indir, outdir):
|
|||||||
"lattice_sizes.txt",
|
"lattice_sizes.txt",
|
||||||
"sample_sizes.txt",
|
"sample_sizes.txt",
|
||||||
]
|
]
|
||||||
labels = [
|
|
||||||
"Lattice sizes",
|
|
||||||
"Sample sizes",
|
|
||||||
]
|
|
||||||
xlabels = ["Lattice size", "Sampling size"]
|
xlabels = ["Lattice size", "Sampling size"]
|
||||||
outfiles = ["lattice_size.pdf", "sample_sizes.pdf"]
|
outfiles = ["lattice_size.pdf", "sample_sizes.pdf"]
|
||||||
|
|
||||||
for file, label, xlabel, outfile in zip(files, labels, xlabels, outfiles):
|
for file, xlabel, outfile in zip(files, xlabels, outfiles):
|
||||||
figure1, ax1 = plt.subplots()
|
figure1, ax1 = plt.subplots()
|
||||||
x = []
|
x = []
|
||||||
parallel = []
|
parallel = []
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user