(self, x_data, y_data)
Set the range of the view box

        Args:
            x_data (np.ndarray): x coordinates
            y_data (np.ndarray) y coordinates
Set the range of the view box
Set the range of the view box
def _reset_view(self, x_data, y_data):
        """
        Set the range of the view box

        Args:
            x_data (np.ndarray): x coordinates
            y_data (np.ndarray) y coordinates
        """
        min_x, max_x = np.min(x_data), np.max(x_data)
        min_y, max_y = np.min(y_data), np.max(y_data)
        self.view_box.setRange(
            QRectF(min_x, min_y, max_x - min_x or 1, max_y - min_y or 1),
            padding=0.025)
def _reset_view ( self , x_data , y_data ) : min_x , max_x = np . min ( x_data ) , np . max ( x_data ) min_y , max_y = np . min ( y_data ) , np . max ( y_data ) self . view_box . setRange ( QRectF ( min_x , min_y , max_x - min_x or 1 , max_y - min_y or 1 ) , padding = 0.025 )