Skip to content

Commit 6342a60

Browse files
committed
cleanup plot outputs
1 parent c4f24df commit 6342a60

File tree

1 file changed

+3
-8
lines changed

1 file changed

+3
-8
lines changed

bench/util.jl

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -13,14 +13,9 @@ function plotout(statsdata, qualities, folder, name)
1313

1414
# max_plt = Plots.plot(statsdata.maximum_qual, title = "Maximum Tri Quality", legend=false, ylabel="Quality")
1515
# vline!(statsdata.retriangulations, line=(0.2, :dot, [:red]))
16+
data = hcat(statsdata.average_volume_edge_ratio, statsdata.min_volume_edge_ratio, statsdata.max_volume_edge_ratio)
1617

17-
avg_tq_plt = Plots.plot(statsdata.average_volume_edge_ratio, title = "Average Tet Quality", legend=false, ylabel="Vol/Edge Ratio")
18-
vline!(statsdata.retriangulations, line=(0.2, :dot, [:red]))
19-
20-
min_tq_plt = Plots.plot(statsdata.min_volume_edge_ratio, title = "Minimum Tet Quality", legend=false, ylabel="Vol/Edge Ratio")
21-
vline!(statsdata.retriangulations, line=(0.2, :dot, [:red]))
22-
23-
max_tq_plt = Plots.plot(statsdata.max_volume_edge_ratio, title = "Maximum Tet Quality", legend=false, ylabel="Vol/Edge Ratio")
18+
tq_plt = Plots.plot(data, title = "Tet Quality", legend=true, label=["Avg","Min","Max"], ylabel="Vol/Edge Ratio")
2419
vline!(statsdata.retriangulations, line=(0.2, :dot, [:red]))
2520

2621
maxdp_plt = Plots.plot(statsdata.maxdp, title = "Max Displacement", legend=false, ylabel="Edge Displacement")
@@ -29,7 +24,7 @@ function plotout(statsdata, qualities, folder, name)
2924
maxmove_plt = Plots.plot(statsdata.maxmove, title = "Max Move", legend=false, ylabel="Point Displacement")
3025
vline!(statsdata.retriangulations, line=(0.2, :dot, [:red]))
3126

32-
plt = Plots.plot(avg_tq_plt,min_tq_plt,max_tq_plt,maxdp_plt,maxmove_plt,layout=(5,1), xlabel="Iteration")
27+
plt = Plots.plot(tq_plt,maxdp_plt,maxmove_plt,layout=(3,1), xlabel="Iteration")
3328

3429
savefig(plt, "$folder/result_stat$name.svg")
3530
savefig(qual_hist, "$folder/result_qual$name.svg")

0 commit comments

Comments
 (0)