Skip to content

Commit

Permalink
fix: rel. intensity in chroms, bokeh marker size
Browse files Browse the repository at this point in the history
also update snapshots accordingly
  • Loading branch information
jcharkow committed Jan 13, 2025
1 parent 6dc3c8c commit bb0b6de
Show file tree
Hide file tree
Showing 23 changed files with 14,832 additions and 14,828 deletions.
2 changes: 1 addition & 1 deletion pyopenms_viz/_bokeh/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -413,7 +413,7 @@ def plot(self):
)

kwargs = dict(
size=self.marker_size,
size=self.marker_size / 4, # divide so units similar to other backends
line_width=0,
fill_color=mapper if self.z is not None else self.current_color,
)
Expand Down
4 changes: 4 additions & 0 deletions pyopenms_viz/_core.py
Original file line number Diff line number Diff line change
Expand Up @@ -571,6 +571,10 @@ def __init__(self, data, config: ChromatogramConfig = None, **kwargs) -> None:
else:
self.data.sort_values(by=self.x, inplace=True)

# Convert to relative intensity if required
if self.relative_intensity:
self.data[self.y] = self.data[self.y] / self.data[self.y].max() * 100

self.plot()

def plot(self):
Expand Down

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit bb0b6de

Please sign in to comment.