pyopenms_viz icon indicating copy to clipboard operation
pyopenms_viz copied to clipboard

how to draw TIC on rt dimension (if y-axis is RT)

Open timosachsenberg opened this issue 9 months ago • 3 comments

doesn't look right because RT should give rise to the TIC Image

timosachsenberg avatar Mar 13 '25 10:03 timosachsenberg

This can be done by specifying the y_kind / x_kind

df.plot(kind="peakmap", x="feature_mz", y="feature_rt",
              z="feature_intensity",
              xlabel = "m/z",
              ylabel = "rt",
              y_kind = "chromatogram", x_kind = "spectrum",
              aggregate_duplicates=True, add_marginals=True, **kwargs)

@Imama-Kainat I think you are working on updating the parameters for the doc right? Can you please make sure this is documented as well, and make a note that y_kind / x_kind is only relevant for kind peakmap and if add_marginals is set to True.

singjc avatar Mar 13 '25 12:03 singjc

@singjc @timosachsenberg I would be happy to help you on this!

jisnoo123 avatar Mar 17 '25 17:03 jisnoo123

Added the note. You can review the PR. Let me know if I need to make any other changes.

jisnoo123 avatar Mar 17 '25 18:03 jisnoo123