class_docstr: Draw a line based on its slope and y-intercept. Additional arguments are
  passed to the <matplotlib.lines.Line2D> constructor.
class_docstr_tok: ["Draw","a","line","based","on","its","slope","and","y-intercept",".","Additional","arguments","are","passed","to","the","<","matplotlib.lines.Line2D",">","constructor","."]
docstr: called whenever axis x/y limits change 
code: def _update_lim(self, event):
      """called whenever axis x/y limits change"""
      x = np.array(self.axes.get_xbound())
      y = (self._slope * x) + self._intercept
      self.set_data(x, y)
      self.axes.draw_artist(self)
  
imports: import matplotlib
  import numpy
  import pandas
  import param
  from matplotlib import patches
  from matplotlib.lines import Line2D
  from ...core.options import abbreviated_exception
  from ...core.util import match_spec
  from ...element import HLines, HSpans, VLines, VSpans
  from .element import ColorbarPlot, ElementPlot
  from .plot import mpl_rc_context
label_desc: Use image node_id 2 for calling the ABLine2D obj's underlying member method code with example usage: obj._update_lim(event) without return types