class_docstr: Handle individual variable logic.
docstr: Get max y value for the variable.
docstr_tok: ["Get","max","y","value","for","the","variable","."]
code: def y_max(self):
      """Get max y value for the variable."""
      end_y = max(y for y, *_ in self.iterator())
  
      if self.combined:
          end_y += self.group_offset
  
      return end_y + 2 * self.group_offset
  
imports: from collections import OrderedDict, defaultdict
  from itertools import tee
  import matplotlib.pyplot
  import numpy
  from matplotlib.colors import to_rgba
  from matplotlib.lines import Line2D
  from ....stats import hdi
  from ....stats.density_utils import get_bins, histogram, kde
  from ....stats.diagnostics import _ess, _rhat
  from ....sel_utils import xarray_var_iter
  from ....utils import conditional_jit
  from ...plot_utils import _scale_fig_size
  from .None import backend_kwarg_defaults, backend_show
label_desc: Use image node_id 8 for calling the VarHandler obj's underlying member method code with example usage: obj.y_max() and returns: unknown