aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/graphstats.py
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/graphstats.py')
-rwxr-xr-xscripts/graphstats.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/graphstats.py b/scripts/graphstats.py
index 7600ee52..ef93e711 100755
--- a/scripts/graphstats.py
+++ b/scripts/graphstats.py
@@ -8,7 +8,7 @@ import optparse, datetime
import matplotlib.pyplot as plt, matplotlib.dates as mdates
MAXBANDWIDTH=25000.
-MAXBUFFER=5.
+MAXBUFFER=2.
def parse_log(logname):
f = open(logname, 'rb')
@@ -90,7 +90,7 @@ def plot_mcu(data, maxbw, outname):
ax1.plot_date(times, bwdeltas, 'g', label='Bandwidth')
ax1.plot_date(times, loads, 'r', label='MCU load')
ax1.plot_date(times, hostbuffers, 'c', label='Host buffer')
- ax1.legend()
+ ax1.legend(loc='best')
ax1.xaxis.set_major_formatter(mdates.DateFormatter('%H:%M'))
#plt.gcf().autofmt_xdate()
ax1.grid(True)