Menu

quik_2Dplot

A. Smith

quik_2Dplot

‘quik_2Dplot’ plots 2D spectra using default settings, or according to user specified settings, provided in a ‘plotpar’ variable. Note that ‘quik_2Dplot’ supports overlaying spectra in logarithmic mode (if the user specifies ‘hold all’ for the axis), and by default will change the plotting color for new spectra.

plotpar.n_contours: Single integer used to specify the number of contour levels to be used in plotting.

plotpar.cutoff: Single value between 0 and 1 to specify the minimum spectrum amplitude to plot, as a fraction of the maximum of the spectrum. If set to an array with two entries (both between 0 and 1), the first entry will specify the minimum amplitude to plot and the second entry the maximum amplitude to plot.

plotpar.mode: String specifying the plotting mode, which is either linear (‘linear’) or logarithmic (‘log’).
plotpar.colormap: List of colors used in plotting, specified as an N x 3 array, in RGB format. Logarithmic plotting will only use 2 colors (2 x 3 array, first row for positive, second row for negative amplitudes).

plotpar.range: Range of the spectrum plot. Should be in the order [LB1 UB1 LB2 UB2].

plotpar.dim: String specifying the plotting order. Default is ‘21’, which places dimension 1 on the y-axis.

plotpar.scaled: String, set to ‘y’ or ‘n’. This is used for overlaying spectra. When set to ‘y’, overlayed spectra will take on the same contour levels as the previous plotted spectrum so that amplitude comparisons are straightforward. Default setting is ‘n’, but when set to ‘y’, this will override ‘par.cutoff’ and ‘par.n_contours’ settings.

For a plot with user settings in ‘plotpar’:

quik_2Dplot(spec,plotpar);

Auth0 Logo