plot_ungridded_uv#

pyvisgrid.plotting.plot_ungridded_uv(gridder: Gridder, mode: str = 'wave', show_times: bool = True, use_relative_time: bool = True, time_cmap: str | matplotlib.colors.Colormap = 'magma', marker_size: float | None = None, aspect_args: dict | None = None, plot_args: dict | None = None, fig_args: dict | None = None, save_to: str | PathLike | None = None, save_args: dict | None = None, fig: matplotlib.figure.Figure | None = None, ax: matplotlib.axes.Axes | None = None) tuple[matplotlib.figure.Figure, matplotlib.axes.Axes][source]#

Plots the ungridded (u,v) points as a scatter plot.

Parameters:
gridderpyvisgrid.Gridder

The gridder from which to take the (u,v) coordinates.

modestr, optional

The mode specifying the scale of the (u,v) coordinates. This can be either wave, meaning the coordinates are plotted in units of the reference wavelength, or meter, meaning the (u,v) coordinates will be plotted in meter. Default is wave.

show_timesbool, optional

Whether to show the timestamps of the measured visibilities as a colormap. Default is True.

use_relative_timebool, optional

Whether to show the times relative to the timestamp of the first measurement in hours. Default is True.

times_cmapstr | matplotlib.colors.Colormap, optional

The colormap to be used for the time component of the plot. Default is 'inferno'.

marker_sizefloat | None, optional

The size of the scatter markers in points**2. Default is None, meaning the default value supplied by your matplotlib rcParams.

plot_argsdict | None, optional

The additional arguments passed to the scatter plot. Default is {"color":"royalblue"}.

fig_argsdict | None, optional

The additional arguments passed to the figure. If a figure object is given in the fig parameter, this value will be discarded. Default is None.

save_tostr | PathLike | None, optional

The name of the file to save the plot to. Default is None, meaning the plot won’t be saved.

save_argsdict | None, optional

The additional arguments passed to the fig.savefig call. Default is {"bbox_inches":"tight"}.

figmatplotlib.figure.Figure | None, optional

A custom figure object. If set to None, the ax parameter also has to be None! Default is None.

axmatplotlib.axes.Axes | None, optional

A custom axes object. If set to None, the fig parameter also has to be None! Default is None.

Returns:
figmatplotlib.figure.Figure

The figure object.

axmatplotlib.axes.Axes

The axes object.