class_docstr: Plotter for numeric independent variables with regression model.
  
  This does the computations and drawing for the `regplot` function, and
  is thus also used indirectly by `lmplot`.
class_docstr_tok: ["Plotter","for","numeric","independent","variables","with","regression","model",".","This","does","the","computations","and","drawing","for","the","`","regplot","`","function",",","and","is","thus","also","used","indirectly","by","`","lmplot","`","."]
docstr: Regression using numpy polyfit for higher-order trends.
docstr_tok: ["Regression","using","numpy","polyfit","for","higher-order","trends","."]
code: def fit_poly(self, grid, order):
      """Regression using numpy polyfit for higher-order trends."""
  
      def reg_func(_x, _y):
          return np.polyval(np.polyfit(_x, _y, order), grid)
  
      x, y = self.x, self.y
      yhat = reg_func(x, y)
      if self.ci is None:
          return yhat, None
  
      yhat_boots = algo.bootstrap(
          x,
          y,
          func=reg_func,
          n_boot=self.n_boot,
          units=self.units,
          seed=self.seed,
      )
      return yhat, yhat_boots
  
imports: import copy
  from textwrap import dedent
  import warnings
  import numpy
  import pandas
  import matplotlib
  import matplotlib.pyplot
  from .None import utils
  from .None import algorithms
  from .axisgrid import FacetGrid, _facet_docs
label_desc: Use image node_id 7 for calling the _RegressionPlotter obj's underlying member method code with example usage: obj.fit_poly(grid, order) and returns: yhat,  yhat_boots, np, yhat,  None