kiva.marker_renderer module

kiva.marker_renderer.MarkerRenderer(buffer, pix_format='bgra32', bottom_up=True)[source]

Create a specialized renderer for implementing draw_marker_at_points.

Parameters
  • buffer (ndarray) – A MxNx{3,4} numpy array of uint8 to be used as the backing pixel store

  • pix_format (str) – A string specifying the pixel format. Same as what it passed to GraphicsContext.

  • bottom_up (bool [optional, defaults to True]) – If True, the origin is bottom-left instead of top-left.

Returns

renderer

Return type

A new MarkerRenderer instance.