BOKEH_MSPlot#
- class pyopenms_viz._bokeh.BOKEH_MSPlot(data: DataFrame, config: BasePlotConfig = None, **kwargs)#
Bases:
BaseMSPlot,BOKEHPlot,ABC- _create_tooltips(entries, index=True, data=None)#
Create tooltips 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) – Whether to show dataframe index in tooltip. Defaults to True.
data (DataFrame, optional) – The data to use for tooltip values. Defaults to None, which uses self.data. When peak binning is enabled, pass the prepared/binned DataFrame to ensure tooltip data matches the plotted data.
- Returns:
Tooltip text. Tooltip data.
- plot_x_axis_line(fig, line_color='#EEEEEE', line_width=1.5, opacity=1)#
plot line across x axis