@@ -13,14 +13,9 @@ function plotout(statsdata, qualities, folder, name)
13
13
14
14
# max_plt = Plots.plot(statsdata.maximum_qual, title = "Maximum Tri Quality", legend=false, ylabel="Quality")
15
15
# 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)
16
17
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" )
24
19
vline! (statsdata. retriangulations, line= (0.2 , :dot , [:red ]))
25
20
26
21
maxdp_plt = Plots. plot (statsdata. maxdp, title = " Max Displacement" , legend= false , ylabel= " Edge Displacement" )
@@ -29,7 +24,7 @@ function plotout(statsdata, qualities, folder, name)
29
24
maxmove_plt = Plots. plot (statsdata. maxmove, title = " Max Move" , legend= false , ylabel= " Point Displacement" )
30
25
vline! (statsdata. retriangulations, line= (0.2 , :dot , [:red ]))
31
26
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" )
33
28
34
29
savefig (plt, " $folder /result_stat$name .svg" )
35
30
savefig (qual_hist, " $folder /result_qual$name .svg" )
0 commit comments