Skip to content

MatplotFigureSubplot

MatplotFigureSubplot should handle all kind of matplotlib figure. Because it handle multiple axes, you need to click on the axis to used pan and zoom functions. It also draw all visibles artists.

This widget is based on MatplotFigure (class inheritance).

MatplotFigureSubplot example

Some useful kivy properties

  • fast_draw (bool) : axis values are not updated for faster draw (default True)
  • draw_all_axes (bool) : draw all axes in current figure. Useful with twin axis or all kind of overlapping axis (default False)
  • interactive_axis (bool) : interactive axis like plotly library (default False)
  • max_hover_rate (None or float) : set a max hover rate. Useful for big data (default None)
  • 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 :

MatplotFigureSubplot:
    fast_draw:False
    draw_all_axes: True
    interactive_axis: True
    max_hover_rate: 5 /60
    min_max_option:True
    auto_cursor: True

Examples using this widget

  • example_4_differents_subplot