Просмотр исходного кода

Switch order of plots, so that segmentation fault does not happen

dustin.born 6 лет назад
Родитель
Сommit
eddf9686d6
1 измененных файлов с 6 добавлено и 6 удалено
  1. 6 6
      code/ID2TLib/Statistics.py

+ 6 - 6
code/ID2TLib/Statistics.py

@@ -1432,6 +1432,12 @@ class Statistics:
             plt.savefig(out, dpi=500)
             return out    
 
+        plot_hist_indegree_out = plot_histogram_degree("inDegree", "Histogram - Ingoing degree per IP Address", 
+            "Ingoing degree", "_plot-Histogram Ingoing Degree per IP" + format)
+        plot_hist_outdegree_out = plot_histogram_degree("outDegree", "Histogram - Outgoing degree per IP Address", 
+            "Outgoing degree", "_plot-Histogram Outgoing Degree per IP" + format)
+        plot_hist_overalldegree_out = plot_histogram_degree("overallDegree", "Histogram - Overall degree per IP Address", 
+            "Overall degree", "_plot-Histogram Overall Degree per IP" + format)
         ttl_out_path = plot_ttl('.' + format)
         mss_out_path = plot_mss('.' + format)
         win_out_path = plot_win('.' + format)
@@ -1465,12 +1471,6 @@ class Statistics:
             "Average interval time", "_plot-Histogram Avg Interval Time per Connection" + "." + format)
         plot_hist_total_comm_duration_out = plot_comm_histogram("totalConversationDuration", "Histogram - Total communication duration in seconds",
             "Duration", "_plot-Histogram Communication Duration per Connection" + "." + format)
-        # plot_hist_indegree_out = plot_histogram_degree("inDegree", "Histogram - Ingoing degree per IP Address", 
-        #     "Ingoing degree", "_plot-Histogram Ingoing Degree per IP" + format)
-        # plot_hist_outdegree_out = plot_histogram_degree("outDegree", "Histogram - Outgoing degree per IP Address", 
-        #     "Outgoing degree", "_plot-Histogram Outgoing Degree per IP" + format)
-        # plot_hist_overalldegree_out = plot_histogram_degree("overallDegree", "Histogram - Overall degree per IP Address", 
-        #     "Overall degree", "_plot-Histogram Overall Degree per IP" + format)
 
         ## Time consuming plot
         # port_out_path = plot_port('.' + format)