@@ -16,6 +16,7 @@ def subplot_interferometer_dataset(
1616 output_format : str = None ,
1717 colormap = None ,
1818 use_log10 : bool = False ,
19+ title_prefix : str = None ,
1920):
2021 """
2122 2x3 subplot of interferometer dataset components.
@@ -38,25 +39,27 @@ def subplot_interferometer_dataset(
3839 use_log10
3940 Apply log10 normalisation to image panels.
4041 """
42+ _pf = (lambda t : f"{ title_prefix .rstrip ()} { t } " ) if title_prefix else (lambda t : t )
43+
4144 fig , axes = subplots (2 , 3 , figsize = conf_subplot_figsize (2 , 3 ))
4245 axes = axes .flatten ()
4346
44- plot_grid (dataset .data .in_grid , ax = axes [0 ], title = "Visibilities" , xlabel = "" , ylabel = "" )
47+ plot_grid (dataset .data .in_grid , ax = axes [0 ], title = _pf ( "Visibilities" ) , xlabel = "" , ylabel = "" )
4548 plot_grid (
4649 Grid2DIrregular .from_yx_1d (
4750 y = dataset .uv_wavelengths [:, 1 ] / 10 ** 3.0 ,
4851 x = dataset .uv_wavelengths [:, 0 ] / 10 ** 3.0 ,
4952 ),
5053 ax = axes [1 ],
51- title = "UV-Wavelengths" ,
54+ title = _pf ( "UV-Wavelengths" ) ,
5255 xlabel = "" ,
5356 ylabel = "" ,
5457 )
5558 plot_yx (
5659 dataset .amplitudes ,
5760 dataset .uv_distances / 10 ** 3.0 ,
5861 ax = axes [2 ],
59- title = "Amplitudes vs UV-distances" ,
62+ title = _pf ( "Amplitudes vs UV-distances" ) ,
6063 xtick_suffix = '"' ,
6164 ytick_suffix = "Jy" ,
6265 plot_axis_type = "scatter" ,
@@ -65,22 +68,22 @@ def subplot_interferometer_dataset(
6568 dataset .phases ,
6669 dataset .uv_distances / 10 ** 3.0 ,
6770 ax = axes [3 ],
68- title = "Phases vs UV-distances" ,
71+ title = _pf ( "Phases vs UV-distances" ) ,
6972 xtick_suffix = '"' ,
7073 ytick_suffix = "deg" ,
7174 plot_axis_type = "scatter" ,
7275 )
7376 plot_array (
7477 dataset .dirty_image ,
7578 ax = axes [4 ],
76- title = "Dirty Image" ,
79+ title = _pf ( "Dirty Image" ) ,
7780 colormap = colormap ,
7881 use_log10 = use_log10 ,
7982 )
8083 plot_array (
8184 dataset .dirty_signal_to_noise_map ,
8285 ax = axes [5 ],
83- title = "Dirty Signal-To-Noise Map" ,
86+ title = _pf ( "Dirty Signal-To-Noise Map" ) ,
8487 colormap = colormap ,
8588 use_log10 = use_log10 ,
8689 )
0 commit comments