The following plot shows the normalized sensitivities of a camera RGB sensors (taken from a scientific publication):
These plots were generated by a raspberry pi device with a camera using squareHSI software. I want to create plots like these with python based on an RGB .jpg image. So far I couldn't find any python tool that is able to do something like that (Camera Sensitivity on Y axis and Wavelenght on X axis).
Tried using ChatGPT for help and plotted something like the following but I'm sure that's a wrong approach:
Any help? Thanks in advance!
EDIT: The RGB photos are captured through a 3D printed module that attaches onto a smartphone camera and has a diffraction grating.

