Skip to content

wrong frequency range when plotting multiple SPWs #135

Description

@jmoldon

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

Image

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

Image

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.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions