Skip to content

MatplotFigure

MatplotFigure is a simplified widget to handle figure with 1 axis and lines only.

Note

Only lines artists will be draw when fast_draw is True. For all other kind of figure with other artists, please use MatplotFigureSubplot widget.

basic example

Some useful kivy properties

  • fast_draw (bool) : axis values are not updated for faster draw (default True)
  • interactive_axis (bool) : interactive axis like plotly library (default False)
  • min_max_option (bool) : min/max touch option to easily change axis limit (default False)
  • auto_cursor (bool) : automatically set cursor on the figure (default False)

How to use in Kv language :

MatplotFigure:
    fast_draw:False
    interactive_axis: True
    min_max_option:True
    auto_cursor: True

Examples using this widget

  • example_basic
  • example_big_data
  • example_hover