Commit 983ab3bf authored by Mathias Diez's avatar Mathias Diez
Browse files

fixed wrong len(labels) in plot_2d_data

parent b78a479d
......@@ -502,7 +502,7 @@ def plot_2d_data(data, labels=None, x=None, y=None, constants={}, ax=None):
for d in data:
d[:] = d[np.argsort(d[x])]
[[ax.plot(d[x], d[y]) for d in data] for y in ylist]
if labels is not None and len(labels)>0:
if labels is not None and len(labels)>1:
var_names = list(labels[0].dtype.names)
if len(ylist) > 1:
leg_texts = []
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment