class_docstr: Default Cairo drawer object for dendrograms.
docstr: Constructs the drawer and associates it to the given palette.
  
  @param context: the context on which we will draw
  @param bbox:    the bounding box within which we will draw.
                  Can be anything accepted by the constructor
                  of L{BoundingBox} (i.e., a 2-tuple, a 4-tuple
                  or a L{BoundingBox} object).
  @param palette: the palette that can be used to map integer
                  color indices to colors when drawing vertices
docstr_tok: ["Constructs","the","drawer","and","associates","it","to","the","given","palette",".","@","param","context",":","the","context","on","which","we","will","draw","@","param","bbox",":","the","bounding","box","within","which","we","will","draw",".","Can","be","anything","accepted","by","the","constructor","of","L","{","BoundingBox","}","(","i.e.",",","a","2-tuple",",","a","4-tuple","or","a","L","{","BoundingBox","}","object",")",".","@","param","palette",":","the","palette","that","can","be","used","to","map","integer","color","indices","to","colors","when","drawing","vertices"]
code: def __init__(self, context, bbox, palette):
      """Constructs the drawer and associates it to the given palette.
  
      @param context: the context on which we will draw
      @param bbox:    the bounding box within which we will draw.
                      Can be anything accepted by the constructor
                      of L{BoundingBox} (i.e., a 2-tuple, a 4-tuple
                      or a L{BoundingBox} object).
      @param palette: the palette that can be used to map integer
                      color indices to colors when drawing vertices
      """
      super().__init__(context, bbox)
      self.palette = palette
  
file_path: python-igraph/src/igraph/drawing/cairo/dendrogram.py
imports: from math import pi
  from igraph.drawing.utils import str_to_orientation
  from .base import AbstractCairoDrawer
label_desc: Use image node_id 1 to create a new CairoDendrogramDrawer object from inherited base classes: AbstractCairoDrawer with example: obj = CairoDendrogramDrawer(context, bbox, palette)