BaseMSPlot#

class pyopenms_viz._core.BaseMSPlot(data, x: str | None = None, y: str | None = None, z: str | None = None, kind=None, by: str | None = None, plot_3d: bool = False, relative_intensity: bool = False, subplots: bool | None = None, sharex: bool | None = None, sharey: bool | None = None, height: int | None = None, width: int | None = None, grid: bool | None = None, toolbar_location: str | None = None, fig: 'figure' | None = None, title: str | None = None, xlabel: str | None = None, ylabel: str | None = None, zlabel: str | None = None, x_axis_location: str | None = None, y_axis_location: str | None = None, title_font_size: int | None = None, xaxis_label_font_size: int | None = None, yaxis_label_font_size: int | None = None, xaxis_tick_font_size: int | None = None, yaxis_tick_font_size: int | None = None, annotation_font_size: int | None = None, line_type: str | None = None, line_width: float | None = None, min_border: int | None = None, show_plot: bool | None = None, aggregate_duplicates: bool | None = None, legend: LegendConfig | Dict | None = None, feature_config: FeatureConfig | Dict | None = None, _config: _BasePlotConfig | None = None, **kwargs)#

Bases: BasePlot, ABC

Abstract class for complex plots, such as chromatograms and mobilograms which are made up of simple plots such as ScatterPlots, VLines and LinePlots.

Parameters:
  • BasePlot (_type_) – _description_

  • ABC (_type_) – _description_

abstract _create_tooltips(entries: dict, index: bool = True)#

Create tooltipis based on entries dictionary with keys: label for tooltip and values: column names.

entries = {

“m/z”: “mz” “Retention Time: “RT”

}

Will result in tooltips where label and value are separated by colon:

m/z: 100.5 Retention Time: 50.1

Parameters:
  • entries (dict) – Which data to put in tool tip and how display it with labels as keys and column names as values.

  • index (bool, optional) – Wether to show dataframe index in tooltip. Defaults to True.

Returns:

Tooltip text. Tooltip data.

abstract plot_x_axis_line(fig)#

plot line across x axis