diff --git a/ex3/rep-17.py b/ex3/rep-17.py index d5a8aee..71e217c 100644 --- a/ex3/rep-17.py +++ b/ex3/rep-17.py @@ -36,7 +36,6 @@ plt.ylabel('Frequency') plt.xticks(np.arange(1, 2.6, 0.1)) plt.grid() plt.title('Histogram of gigabytes per hour during one month') -plt.savefig('figures/bytes_hourly_hist.png') plt.show() # Plotting daily bytes histogram @@ -46,7 +45,6 @@ plt.ylabel('Frequency') plt.xticks(np.arange(0, 5.5, 0.2)) plt.grid() plt.title('Histogram of gigabytes per day during 10 years') -plt.savefig('figures/bytes_daily_hist.png') plt.show() # Plotting hourly packets histogram @@ -55,7 +53,6 @@ plt.xlabel('#packets/h in millions') plt.ylabel('Frequency') plt.grid() plt.title('Histogram of packets per hour during one month') -plt.savefig('figures/packets_hourly_hist.png') plt.show() # Plotting daily packets histogram @@ -64,7 +61,6 @@ plt.xlabel('#packets/day in millions') plt.ylabel('Frequency') plt.grid() plt.title('Histogram of packets per day during 10 years') -plt.savefig('figures/packets_daily_hist.png') plt.show() # Plotting hourly unique source IPs histogram @@ -73,7 +69,6 @@ plt.xlabel('#uIPs/h in thousands') plt.ylabel('Frequency') plt.grid() plt.title('Histogram of unique source IPs per hour during one month') -plt.savefig('figures/uIPs_hourly_hist.png') plt.show() # Plotting daily unique source IPs histogram @@ -82,7 +77,6 @@ plt.xlabel('#uIPs/day in thousands') plt.ylabel('Frequency') plt.grid() plt.title('Histogram of unique source IPs per day during 10 years') -plt.savefig('figures/uIPs_daily_hist.png') plt.show() # Plotting hourly unique destination IPs histogram @@ -91,7 +85,6 @@ plt.xlabel('#uIPd/h in millions') plt.ylabel('Frequency') plt.grid() plt.title('Histogram of unique destination IPs per hour during one month') -plt.savefig('figures/uIPd_hourly_hist.png') plt.show() # Plotting daily unique destination IPs histogram @@ -100,7 +93,6 @@ plt.xlabel('#uIPs/day in millions') plt.ylabel('Frequency') plt.grid() plt.title('Histogram of unique destination IPs per day during 10 years') -plt.savefig('figures/uIPd_daily_hist.png') plt.show() # Plotting hourly bytes boxplot @@ -109,7 +101,6 @@ plt.ylabel('GB/h') plt.grid() plt.title('Boxplot of gigabytes per hour during one month') plt.show() -plt.savefig('figures/bytes_hourly_boxplot.png') # Plotting daily bytes boxplot plt.boxplot(dataset_daily['# Bytes'] / (1*10**9)) @@ -117,7 +108,6 @@ plt.ylabel('GB/day') plt.grid() plt.title('Boxplot of gigabytes per day during 10 years') plt.show() -plt.savefig('figures/bytes_daily_boxplot.png') # Plotting hourly packets boxplot plt.boxplot(dataset_hourly['#packets'] / (1*10**6)) @@ -126,7 +116,6 @@ plt.ylabel('#packets/h in millions') plt.grid() plt.title('Boxplot of packets per hour during one month') plt.show() -plt.savefig('figures/packets_hourly_boxplot.png') # Plotting daily packets boxplot plt.boxplot(dataset_daily['# Packets'] / (1*10**6)) @@ -134,7 +123,6 @@ plt.ylabel('#packets/day in millions') plt.grid() plt.title('Boxplot of packets per day during 10 years') plt.show() -plt.savefig('figures/packets_daily_boxplot.png') # Plotting hourly unique source IPs boxplot plt.boxplot(dataset_hourly['#unique_IP_sources'] / (1*10**3)) @@ -142,7 +130,6 @@ plt.ylabel('#uIPs/h in thousands') plt.grid() plt.title('Boxplot of unique source IPs per hour during one month') plt.show() -plt.savefig('figures/uIPs_hourly_boxplot.png') # Plotting daily unique source IPs boxplot plt.boxplot(dataset_daily['# Unique Source IPs'] / (1*10**3)) @@ -150,7 +137,6 @@ plt.ylabel('#uIPs/day in thousands') plt.grid() plt.title('Boxplot of unique source IPs per day during 10 years') plt.show() -plt.savefig('figures/uIPs_daily_boxplot.png') # Plotting hourly unique destination IPs boxplot plt.boxplot(dataset_hourly['#unique_IP_destinations'] / (1*10**6)) @@ -158,7 +144,6 @@ plt.ylabel('#uIPd/h in millions') plt.grid() plt.title('Boxplot of unique destination IPs per hour during one month') plt.show() -plt.savefig('figures/uIPd_hourly_boxplot.png') # Plotting daily unique destination IPs boxplot plt.boxplot(dataset_daily['# Unique Destination IPs'] / (1*10**6)) @@ -166,4 +151,3 @@ plt.ylabel('#uIPd/day in millions') plt.grid() plt.title('Boxplot of unique destination IPs per day during 10 years') plt.show() -plt.savefig('figures/uIPd_daily_boxplot.png')