class_docstr: Horizontal interval represented as an errorbar
  
  {usage}
  
  Parameters
  ----------
  {common_parameters}
  height : float, default=0.5
      Bar height as a fraction of the resolution of the data.
class_docstr_tok: ["Horizontal","interval","represented","as","an","errorbar","{","usage","}","Parameters","--","--","--","--","--","{","common_parameters","}","height",":","float",",","default=0.5","Bar","height","as","a","fraction","of","the","resolution","of","the","data","."]
code: def setup_data(self, data: pd.DataFrame) -> pd.DataFrame:
      if "height" not in data:
          if self.params["height"]:
              data["height"] = self.params["height"]
          else:
              data["height"] = resolution(data["y"], False) * 0.9
  
      data["ymin"] = data["y"] - data["height"] / 2
      data["ymax"] = data["y"] + data["height"] / 2
      del data["height"]
      return data
  
file_path: plotnine/plotnine/geoms/geom_errorbarh.py
imports: from __future__ import annotations
  import typing
  import numpy
  import pandas
  from .._utils import copy_missing_columns, resolution
  from ..doctools import document
  from .geom import geom
  from .geom_path import geom_path
  from .geom_segment import geom_segment
label_desc: Use image node_id 1 for calling the geom_errorbarh obj's underlying member method code with example usage: obj.setup_data(data) and returns: data