AstroImages.polquiverFunction
polquiver(polcube::AstroImage; kwargs...)
polquiver!([ax], polcube::AstroImage; kwargs...)

Given a data cube of at least 2 spatial dimensions plus a polarization axis (Pol), plot a vector field of linear polarization data with Makie. The segment length represents the polarization intensity, sqrt(Q^2 + U^2), and the color represents the linear polarization fraction, sqrt(Q^2 + U^2) / I.

Note

Requires a Makie backend (e.g. using CairoMakie or using GLMakie) to be loaded.

Keyword arguments:

  • bins (default 4) by how much the polarization data is binned down (block-averaged) before drawing the segments
  • ticklen (default bins) how long the 98th-percentile segment should be, in pixels
  • colormap (default :turbo) colormap for the linear polarization fraction
  • minpol (default 0.1) hides segments shorter than minpol times the 98th-percentile intensity. Set to 0 to display all data.

Use implot and polquiver! to overplot polarization data over an image.

source