ACCarnall / bagpipes

Bagpipes is a state of the art code for generating realistic model galaxy spectra and fitting these to spectroscopic and photometric observations. Users should install with pip, not by cloning the repository.
http://bagpipes.readthedocs.io
GNU General Public License v3.0
71 stars 37 forks source link

Changing Units of the Axes in SED Plot #69

Closed poulomi717 closed 1 month ago

poulomi717 commented 1 month ago

Hello!

I am trying to fit a catalogue of photometric data with bagpipes for JWST NIRCam observations for a z~4.5 galaxy on a pixel-by-pixel basis and each object in the catalogue corresponds to a single pixel. However, I want to plot the SED with respect to F_nu and not F_lambda. Also, I donot want the wavelength to be in logarithmic scale and instead just plot it in microns. Is there any particular way I can solve this? I have attached an example fit created for one of the pixels in the image for reference.

Thanks and Regards, Poulomi Screenshot from 2024-04-05 00-42-31

ACCarnall commented 1 month ago

Hi Poulomi,

The plotting functionality in bagpipes isn't really meant to do everything, it's just meant for creating simple, standardised diagnostics. If you want customised plots like this you'll need to make them yourself. Feel free to adapt the functions in the bagpipes/plotting folder.

Cheers, Adam

poulomi717 commented 1 month ago

Thank you for the help.