summaryrefslogtreecommitdiffstats
path: root/TOOLS
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2016-10-06 18:00:23 +0200
committerwm4 <wm4@nowhere>2016-10-06 19:42:18 +0200
commit9340f19ba24d72d14b860e59bcfc2a51cfeee1de (patch)
tree94edc374dc481f0623b45c690b5e132cf75fb857 /TOOLS
parent53798b6465718f6746b2a7adf3e68b12d00a6639 (diff)
downloadmpv-9340f19ba24d72d14b860e59bcfc2a51cfeee1de.tar.bz2
mpv-9340f19ba24d72d14b860e59bcfc2a51cfeee1de.tar.xz
TOOLS/stats-conv.py: use different colors for symbols too
Also, not setting pen=None seems to draw horizontal lines for the dots, which is fine too.
Diffstat (limited to 'TOOLS')
-rwxr-xr-xTOOLS/stats-conv.py11
1 files changed, 6 insertions, 5 deletions
diff --git a/TOOLS/stats-conv.py b/TOOLS/stats-conv.py
index 120f69195a..5fc092e3c7 100755
--- a/TOOLS/stats-conv.py
+++ b/TOOLS/stats-conv.py
@@ -151,15 +151,16 @@ for cur in ax:
cur.addLegend(offset = (-1, 1))
for e in G.sevents:
cur = ax[1 if e.type == "value" else 0]
+ if not cur in G.curveno:
+ G.curveno[cur] = 0
args = {'name': e.name,'antialias':True}
+ color = mkColor(colors[G.curveno[cur] % len(colors)])
if e.type == "event-signal":
args['symbol'] = e.marker
- args['pen'] = None
+ args['symbolBrush'] = pg.mkBrush(color, width=0)
else:
- if not cur in G.curveno:
- G.curveno[cur] = 0
- args['pen'] = pg.mkPen(mkColor(colors[G.curveno[cur] % len(colors)]), width=0)
- G.curveno[cur] += 1
+ args['pen'] = pg.mkPen(color, width=0)
+ G.curveno[cur] += 1
n = cur.plot([x for x,y in e.vals], [y for x,y in e.vals], **args)
QtGui.QApplication.instance().exec_()