class_docstr: Handle individual variable logic.
docstr: Get data for each treeplot for the variable.
docstr_tok: ["Get","data","for","each","treeplot","for","the","variable","."]
code: def treeplot(self, qlist, hdi_prob):
      """Get data for each treeplot for the variable."""
      for y, _, _, selection, values, color in self.iterator():
          ntiles = np.percentile(values.flatten(), qlist)
          ntiles[0], ntiles[-1] = hdi(
              values.flatten(), hdi_prob, multimodal=False
          )
          yield y, selection, ntiles, color
  
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 4 for calling the VarHandler obj's underlying member method code with example usage: obj.treeplot(qlist, hdi_prob) without return types