@@ -896,8 +896,9 @@ def update_from_data_x(self, x, ignore=None):
896
896
- When ``None``, use the last value passed to :meth:`ignore`.
897
897
"""
898
898
x = np .ravel (x )
899
- self .update_from_data_xy (np .column_stack ([x , np .ones (x .size )]),
900
- ignore = ignore , updatey = False )
899
+ xy = np .empty ((x .size , 2 ), dtype = x .dtype )
900
+ xy [:, 0 ] = x
901
+ self .update_from_data_xy (xy , ignore = ignore , updatey = False )
901
902
902
903
def update_from_data_y (self , y , ignore = None ):
903
904
"""
@@ -915,8 +916,9 @@ def update_from_data_y(self, y, ignore=None):
915
916
- When ``None``, use the last value passed to :meth:`ignore`.
916
917
"""
917
918
y = np .ravel (y )
918
- self .update_from_data_xy (np .column_stack ([np .ones (y .size ), y ]),
919
- ignore = ignore , updatex = False )
919
+ xy = np .empty ((y .size , 2 ), dtype = y .dtype )
920
+ xy [:, 1 ] = y
921
+ self .update_from_data_xy (xy , ignore = ignore , updatex = False )
920
922
921
923
def update_from_data_xy (self , xy , ignore = None , updatex = True , updatey = True ):
922
924
"""
0 commit comments