Skip to content

KivyMatplotNavToolbar

KivyMatplotNavToolbar is a kivy navigation bar. All the option avalaible used the icons on NavigationIcons.ttf font.

Note

This widget need a figure object to be functional. figure_wgt property need a matplotlib figure object.

intro

Some useful kivy properties

  • nav_icon (str) : navigation icon used (option: 'normal','minimal','all', '3D', 'custom'. Default: 'normal')
  • hover_mode (str) : type of hover mode (option: 'desktop','touch'. Default: 'touch')
  • show_cursor_data (bool) : show cursor coordinate (default False). Useful when 'desktop mode' is set.
  • orientation_type (str) : navigation bar orientation (option: 'actionbar','rail'. Default: 'actionbar')

How to use in Kv language :

KivyMatplotNavToolbar:
    nav_icon:'all'
    hover_mode:'desktop'
    show_cursor_data:True
    figure_wgt:figure_wgt

MatplotFigureSubplot:
    id:figure_wgt

3D graph usage

For 3D graph use nav_icon = '3D' properties.

Note

For 3D graph, you need to set figure_wgt_layout property to be functional. hover_mode and show_cursor_data doesn't work for 3D graph

How to use in Kv language :

KivyMatplotNavToolbar:
    nav_icon:'3D'
    figure_wgt_layout:figure_wgt_layout

MatplotFigure3DLayout:
    id:figure_wgt_layout

kivy_navigationbar_3D

Examples using this widget

  • example_kivy_navigation_bar