Limit the number of ratios plotted in overlay_all_ratio plots/Error when using two ratios in LineRatioFit

3 views
Skip to first unread message

Carl Ferkinhoff

unread,
Jun 2, 2026, 1:14:37 PMJun 2
to PDR Toolbox
When using "LineRatioPlot" and "overlay_all_ratio" to make plots like the following

Screenshot 2026-06-02 114322.png

Is there a way to only select some of the ratios to plot? I ask because in this case the Cii/FIR ratio is in my mind degenerate with the (OI+CII)/FIR ratio and I would prefer not to include it in the graph. 

To address this we tried to have the ratios be our measurements (i.e. CII/OI and (OI+CII)/FIR ratio), thinking that then it would only show explicity the ratios we entered as measurements. However, if we do this then attempting to run "LineRatioFit" gives us an error that it needs three measurements so it can make at least two ratios . . . however we've already explicitly defined the two measurements.

Screenshot 2026-06-02 121030.png

Marc W. Pound

unread,
Jul 28, 2026, 12:51:50 PM (10 days ago) Jul 28
to Carl Ferkinhoff, PDR Toolbox
Hi Carl,

I think I never answered this, sorry!   The cheat way would be just to remove the unwanted ratios from the LineRatioFit instance.
They are stored as dictionaries in LineRatioFit._observedratios, LineRatioFit._modelratios, e.g use dict.pop().   You have to delete  from both dicts to keep them symmetric.
I'll add an issue to allow overlaying a list of ratios. 

best,
Marc


--
You received this message because you are subscribed to the Google Groups "PDR Toolbox" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pdrt+uns...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/pdrt/2b924931-07b6-479b-a91c-9a89119a7654n%40googlegroups.com.


--
Dr. Marc Pound
Research Scientist
Astronomy Department
University of Maryland, College Park

Marc W. Pound

unread,
Jul 28, 2026, 12:55:58 PM (10 days ago) Jul 28
to Carl Ferkinhoff, PDR Toolbox
A separate or related issue could be giving an exclude_ratio list to the fitter in the first place, because even if you delete some ratios from the plot, the fit result would still be based on all the ratios.

Marc

Marc W. Pound

unread,
Jul 28, 2026, 1:06:22 PM (10 days ago) Jul 28
to Carl Ferkinhoff, PDR Toolbox
Reply all
Reply to author
Forward
0 new messages