File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -564,13 +564,16 @@ def _resolve_intervals_1dplot(
564
564
if kwargs .get ("drawstyle" , "" ).startswith ("steps-" ):
565
565
566
566
remove_drawstyle = False
567
+
567
568
# Convert intervals to double points
568
- if _valid_other_type (np .array ([xval , yval ]), [pd .Interval ]):
569
+ x_is_interval = _valid_other_type (xval , [pd .Interval ])
570
+ y_is_interval = _valid_other_type (yval , [pd .Interval ])
571
+ if x_is_interval and y_is_interval :
569
572
raise TypeError ("Can't step plot intervals against intervals." )
570
- if _valid_other_type ( xval , [ pd . Interval ]) :
573
+ elif x_is_interval :
571
574
xval , yval = _interval_to_double_bound_points (xval , yval )
572
575
remove_drawstyle = True
573
- if _valid_other_type ( yval , [ pd . Interval ]) :
576
+ elif y_is_interval :
574
577
yval , xval = _interval_to_double_bound_points (yval , xval )
575
578
remove_drawstyle = True
576
579
You can’t perform that action at this time.
0 commit comments