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, ormeter, meaning the (u,v) coordinates will be plotted in meter. Default iswave.- 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
figparameter, this value will be discarded. Default isNone.- 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.savefigcall. Default is{"bbox_inches":"tight"}.- figmatplotlib.figure.Figure | None, optional
A custom figure object. If set to
None, theaxparameter also has to beNone! Default isNone.- axmatplotlib.axes.Axes | None, optional
A custom axes object. If set to
None, thefigparameter also has to beNone! Default isNone.
- Returns:
- figmatplotlib.figure.Figure
The figure object.
- axmatplotlib.axes.Axes
The axes object.