Do not save figures to disk

This commit is contained in:
Tobias Eidelpes 2021-05-14 19:03:05 +02:00
parent a8d6910591
commit 55773f0bab

View File

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