Skip to content
Snippets Groups Projects
Commit 0cfa24c6 authored by Guillaume Valadon's avatar Guillaume Valadon
Browse files

Merge pull request #36 from p-l-/fix-py25

Fix for Python 2.5 (cannot mix keyword arguments and **kargs)
parents 438fd87a f3a4c64e
No related branches found
No related tags found
No related merge requests found
......@@ -213,9 +213,11 @@ lfilter: truth function to apply to each packet to decide whether it will be dis
kargs = MATPLOTLIB_DEFAULT_PLOT_KARGS
if plot_xy:
lines = [plt.plot(*zip(*pl), label=k, **kargs) for k, pl in d.iteritems()]
lines = [plt.plot(*zip(*pl), **dict(kargs, label=k))
for k, pl in d.iteritems()]
else:
lines = [plt.plot(pl, label=k, **kargs) for k, pl in d.iteritems()]
lines = [plt.plot(pl, **dict(kargs, label=k))
for k, pl in d.iteritems()]
plt.legend(loc="center right", bbox_to_anchor=(1.5, 0.5))
# Call show() if matplotlib is not inlined
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment