Przeglądaj źródła

bugfix of issue #31 where plots with the max value of the x-bar would be printed in a way they are hard to see

Roey Regev 6 lat temu
rodzic
commit
60d9eda8d4
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1 1
      code/Core/Statistics.py

+ 1 - 1
code/Core/Statistics.py

@@ -671,7 +671,7 @@ class Statistics:
             plt.xlabel(x_label)
             plt.ylabel(y_label)
             width = 0.1
-            plt.xlim([0, max(graphx)])
+            plt.xlim([0, (max(graphx) * 1.1)])
             plt.grid(True)
             plt.bar(graphx, graphy, width, align='center', linewidth=1, color='red', edgecolor='red')
             out = self.pcap_filepath.replace('.pcap', '_plot-' + title + file_ending)