plot_cmd_with_fits¶
-
beast.plotting.plot_cmd_with_fits.plot_cmd_with_fits(data_fits_file, beast_fits_file, mag1_filter='F475W', mag2_filter='F814W', mag3_filter='F475W', param='chi2min', log_param=False, plot_all=False, savefig=False, show_plot=True)[source]¶ Make a CMD with the data, and color-code points by some other fitted quantity
Magnitudes are calculated as -2.5*log10(filter_RATE), rather than directly extracting the magnitude from the catalog.
- Parameters
- data_fits_filestr
path+file for the stellar photometry
- beast_fits_filestr
path+file for the BEAST fitting results
- mag1_filterstr (default=’F475W’)
1st color filter
- mag2_filterstr (default=’F814W’)
2nd color filter
- mag3_filterstr (default=’F475W’)
filter for the magnitude
- paramstr (default=’chi2min’)
parameter to use for color-coding points
- log_paramboolean (default=False)
choose whether to take the log of
paramfor assigning color- plot_allboolean (default=False)
If True, plot all points by converting the fluxes into magnitudes. If False, only plot sources with Vega mags that are <99 in the mag1/mag2/mag3 filters
- savefigboolean (default=False)
Save figure to file, or just show it.
- show_plotboolean
True, show the plot (to screen or a file) False, return the fig