Skip to content

Commit 87d6da1

Browse files
committed
BUG: revert to circle marker for markers not in matplotlib < 1.1. close #1484
1 parent 2c51144 commit 87d6da1

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

pandas/tools/plotting.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,8 @@ def scatter_matrix(frame, alpha=0.5, figsize=None, ax=None, grid=False,
5050

5151
mask = com.notnull(df)
5252

53+
marker = _get_marker_compat(marker)
54+
5355
for i, a in zip(range(n), df.columns):
5456
for j, b in zip(range(n), df.columns):
5557
if i == j:
@@ -130,6 +132,12 @@ def _gcf():
130132
import matplotlib.pyplot as plt
131133
return plt.gcf()
132134

135+
def _get_marker_compat(marker):
136+
import matplotlib.lines as mlines
137+
if marker not in mlines.lineMarkers:
138+
return 'o'
139+
return marker
140+
133141
def andrews_curves(data, class_column, ax=None, samples=200):
134142
"""
135143
Parameters:

0 commit comments

Comments
 (0)