Skip to content

Commit f093e10

Browse files
committed
Minor bug fix for use with MultiIndex
1 parent 5c5dc12 commit f093e10

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

psy_reg/plotters.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -553,7 +553,10 @@ def update(self, value):
553553
self.id_color.colors, linestyles):
554554
if da.ndim > 1:
555555
da = da[0]
556-
x = da.to_series().index.values
556+
try:
557+
x = psyps._get_index_vals(da.to_series().index)
558+
except AttributeError: # old psy-simple version
559+
x = da.to_series().index
557560
if fit_type in ['robust', 'fit']:
558561
y = vals[0] + vals[1] * x
559562
else:

0 commit comments

Comments
 (0)