@@ -1448,7 +1448,14 @@ def _make_plot(self, fig: Figure) -> None:
1448
1448
# error: Signature of "_plot" incompatible with supertype "MPLPlot"
1449
1449
@classmethod
1450
1450
def _plot ( # type: ignore[override]
1451
- cls , ax : Axes , x , y , style = None , column_num = None , stacking_id = None , ** kwds
1451
+ cls ,
1452
+ ax : Axes ,
1453
+ x ,
1454
+ y : np .ndarray ,
1455
+ style = None ,
1456
+ column_num = None ,
1457
+ stacking_id = None ,
1458
+ ** kwds ,
1452
1459
):
1453
1460
# column_num is used to get the target column from plotf in line and
1454
1461
# area plots
@@ -1475,7 +1482,7 @@ def _ts_plot(self, ax: Axes, x, data: Series, style=None, **kwds):
1475
1482
decorate_axes (ax .right_ax , freq , kwds )
1476
1483
ax ._plot_data .append ((data , self ._kind , kwds ))
1477
1484
1478
- lines = self ._plot (ax , data .index , data .values , style = style , ** kwds )
1485
+ lines = self ._plot (ax , data .index , np . asarray ( data .values ) , style = style , ** kwds )
1479
1486
# set date formatter, locators and rescale limits
1480
1487
# error: Argument 3 to "format_dateaxis" has incompatible type "Index";
1481
1488
# expected "DatetimeIndex | PeriodIndex"
@@ -1503,7 +1510,9 @@ def _initialize_stacker(cls, ax: Axes, stacking_id, n: int) -> None:
1503
1510
1504
1511
@final
1505
1512
@classmethod
1506
- def _get_stacked_values (cls , ax : Axes , stacking_id , values , label ):
1513
+ def _get_stacked_values (
1514
+ cls , ax : Axes , stacking_id : int | None , values : np .ndarray , label
1515
+ ) -> np .ndarray :
1507
1516
if stacking_id is None :
1508
1517
return values
1509
1518
if not hasattr (ax , "_stacker_pos_prior" ):
@@ -1523,7 +1532,7 @@ def _get_stacked_values(cls, ax: Axes, stacking_id, values, label):
1523
1532
1524
1533
@final
1525
1534
@classmethod
1526
- def _update_stacker (cls , ax : Axes , stacking_id , values ) -> None :
1535
+ def _update_stacker (cls , ax : Axes , stacking_id : int | None , values ) -> None :
1527
1536
if stacking_id is None :
1528
1537
return
1529
1538
if (values >= 0 ).all ():
@@ -1601,7 +1610,7 @@ def _plot( # type: ignore[override]
1601
1610
cls ,
1602
1611
ax : Axes ,
1603
1612
x ,
1604
- y ,
1613
+ y : np . ndarray ,
1605
1614
style = None ,
1606
1615
column_num = None ,
1607
1616
stacking_id = None ,
@@ -1727,7 +1736,7 @@ def _plot( # type: ignore[override]
1727
1736
cls ,
1728
1737
ax : Axes ,
1729
1738
x ,
1730
- y ,
1739
+ y : np . ndarray ,
1731
1740
w ,
1732
1741
start : int | npt .NDArray [np .intp ] = 0 ,
1733
1742
log : bool = False ,
@@ -1860,7 +1869,7 @@ def _plot( # type: ignore[override]
1860
1869
cls ,
1861
1870
ax : Axes ,
1862
1871
x ,
1863
- y ,
1872
+ y : np . ndarray ,
1864
1873
w ,
1865
1874
start : int | npt .NDArray [np .intp ] = 0 ,
1866
1875
log : bool = False ,
0 commit comments