class_docstr: Vertical interval represented as an errorbar
  
  {usage}
  
  Parameters
  ----------
  {common_parameters}
  width : float, default=0.5
      Bar width as a fraction of the resolution of the data.
class_docstr_tok: ["Vertical","interval","represented","as","an","errorbar","{","usage","}","Parameters","--","--","--","--","--","{","common_parameters","}","width",":","float",",","default=0.5","Bar","width","as","a","fraction","of","the","resolution","of","the","data","."]
code: def setup_data(self, data: pd.DataFrame) -> pd.DataFrame:
      if "width" not in data:
          if self.params["width"]:
              data["width"] = self.params["width"]
          else:
              data["width"] = resolution(data["x"], False) * 0.9
  
      data["xmin"] = data["x"] - data["width"] / 2
      data["xmax"] = data["x"] + data["width"] / 2
      del data["width"]
      return data
  
file_path: plotnine/plotnine/geoms/geom_errorbar.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_errorbar obj's underlying member method code with example usage: obj.setup_data(data) and returns: data