Skip to content

Commit 3f4f285

Browse files
committed
BUG: parallel_coordinates bugfix with matplotlib 1.2.0. close #2237
1 parent 60e69a3 commit 3f4f285

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

RELEASE.rst

+2
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,8 @@ pandas 0.9.1
108108
- SparseDataFrame.icol was not returning SparseSeries (#2227, #2229)
109109
- Enable ExcelWriter to handle PeriodIndex (#2240)
110110
- Fix issue constructing DataFrame from empty Series with name (#2234)
111+
- Use console-width detection in interactive sessions only (#1610)
112+
- Fix parallel_coordinates legend bug with mpl 1.2.0 (#2237)
111113
112114
pandas 0.9.0
113115
============

pandas/tools/plotting.py

+4-2
Original file line numberDiff line numberDiff line change
@@ -452,12 +452,14 @@ def random_color(column):
452452
for i in range(n):
453453
row = df.irow(i).values
454454
y = row
455-
label = None
456455
kls = class_col.iget_value(i)
457456
if com.pprint_thing(kls) not in used_legends:
458457
label = com.pprint_thing(kls)
459458
used_legends.add(label)
460-
ax.plot(x, y, color=random_color(kls), label=label, **kwds)
459+
ax.plot(x, y, color=random_color(kls),
460+
label=label, **kwds)
461+
else:
462+
ax.plot(x, y, color=random_color(kls), **kwds)
461463

462464
for i in range(ncols):
463465
ax.axvline(i, linewidth=1, color='black')

0 commit comments

Comments
 (0)