When plotting FREQ on x-axis with multiple spectral windows selected, the x-axis limits are set to the first SPW's frequency range instead of the global maximum across all selected SPWs.
As an example, the same command without and with manual x limits:
shadems --field 4 --corr RR -x FREQ -y amp -X 600 -Y 400 data/TS8004_C_001_20190801_avg.ms

shadems --field 4 --corr RR -x FREQ -y amp --xmin 4.8e9 --xmax 5.33e9 -X 600 -Y 400 data/TS8004_C_001_20190801_avg.ms

Both are plotting all the data correctly, but the first one cuts out part of the data because only the min/max frequency of the first selected SPW are considered for the range.
I think the solution is easy if the bounds variable is populated with the min/max frequencies of all selected SPW.
When plotting FREQ on x-axis with multiple spectral windows selected, the x-axis limits are set to the first SPW's frequency range instead of the global maximum across all selected SPWs.
As an example, the same command without and with manual x limits:
Both are plotting all the data correctly, but the first one cuts out part of the data because only the min/max frequency of the first selected SPW are considered for the range.
I think the solution is easy if the
boundsvariable is populated with the min/max frequencies of all selected SPW.