plot_event_barh

src.lookoutequipment.plot.plot_event_barh(event_details, num_signals=10, fig_width=12)

Plot a horizontal bar chart with the feature importance of each signal that contributes to the event passed as an argument.

Parameters
  • event_details (pandas.DataFrame) – A dataframe with the sensor name and the feature importance in two columns

  • num_signals (integer) – States how many signals to plot in the bar chart (default to 10)

  • fig_width (integer) – Width of the figure to plot

Returns

tuple: tuple containing:
  • A matplotlib.pyplot.figure where the plot is drawn

  • A matplotlib.pyplot.Axis where the plot is drawn

Return type

Returns