MATPLOTLIBPlot#
- class pyopenms_viz._matplotlib.MATPLOTLIBPlot(data: DataFrame, config: BasePlotConfig = None, **kwargs)#
- Bases: - BasePlot,- ABC- Base class for assembling a Matplotlib plot. - data#
- The input data frame. - Type:
- DataFrame 
 
 - _add_legend(legend)#
- Add a legend to the plot. - Parameters:
- ax – The axes object. 
- legend – The legend configuration. 
 
 
 - _create_figure()#
- Create a figure and axes objects, for consistency with other backends, the fig object stores the matplotlib axes object 
 - property _interactive#
- Whether the plot is interactive. Must be overridden by subclasses 
 - _load_extension()#
- Load the matplotlib extension. 
 - _modify_x_range(x_range: Tuple[float, float], padding: Tuple[float, float] | None = None)#
- Modify the x-axis range. - Parameters:
- x_range (Tuple[float, float]) – The x-axis range. 
- padding (Tuple[float, float] | None, optional) – The padding for the range. Defaults to None. 
 
 
 - _modify_y_range(y_range: Tuple[float, float], padding: Tuple[float, float] | None = None)#
- Modify the y-axis range. - Parameters:
- y_range (Tuple[float, float]) – The y-axis range. 
- padding (Tuple[float, float] | None, optional) – The padding for the range. Defaults to None. 
 
 
 - _update_plot_aes()#
- Update the plot aesthetics. - Parameters:
- **kwargs – Additional keyword arguments. 
 
 - generate(tooltips, custom_hover_data) Axes#
- Generate the plot 
 - show_default()#
- Show the plot. 
 
