This is where navigation should be.


GSP_PLOT_FILTER - Plot a system of filters

Usage

[filter_data,test_sum]=gsp_plot_filter(G,filters);
[filter_data,test_sum]=gsp_plot_filter(G,filters,param);

Input parameters

G Graph object (Or lmax)
filters Cell array of filters (or single filter)
param Optional variable containing additional parameters

Output parameters

non none

Description

'gsp_plot_filters(G, filter, param)' plots a system of graph spectral filters.

Example:

Nf = 4;
G = gsp_sensor(100);
G = gsp_estimate_lmax(G);
g = gsp_design_mexican_hat(G, Nf);
gsp_plot_filter(G, g);
gsp_plot_filter_1_1.png

Additional parameters

  • param.line_width : Width of the filter plots (default 4).
  • param.npoints : Number of point where the filters are evaluated (default 1000).
  • param.x_tic : Distance between x-tick labels.
  • param.y_tic : Distance between y-tick labels (default 0.25).
  • param.minor_tick : To show minor tick marks (default 1).
  • param.plot_eigenvalues : To plot black X marks at all eigenvalues of the graph (You need to compute the Fourier basis to use this option). By default the eigenvalues are plot if they are contained in the Graph.
  • param.lambda_highlights : To plot red X marks at highlight eigenvalues (default 0).
  • param.x_width : Width of X marks for the eigenvalues (default 3).
  • param.x_size : Size of X marks for the eigenvalues (default 8).
  • param.show_sum : To plot an extra line showing the sum of the squared magnitudes of the filters (default 1 if there is multiple filters).
  • param.colors_rgb : To specify the line colors.
  • param.cla : Clear axis (default 1).
  • param.yrange : To specify a range for the y axis.
  • param.verbose : Verbosity level (1 display the warning - 0 no log) (default 1).