LensFactory.MultiPlane.plot_image_planeFunction
LensFactory.MultiPlane.plot_image_plane(cosmology::Cosmology.AbstractCosmology, lens::Lenses.AbstractLens, θx::ROA, θy::ROA, zs::RV)

Arguments

  • cosmology::Cosmology.AbstractCosmology – Cosmology
  • lens::Lenses.AbstractLens – The lens model to plot
  • θx::ROA – x-coordinates grid
  • θy::ROA – y-coordinates grid
  • zs::RV – Source redshift

Keyword arguments

  • two_panel::Bool = false – Whether to create a two-panel plot with source plane on the left and image plane on the right
  • plot_caustic::Bool = true
    • caustic_kws::NamedTuple = (color = :green, linewidth = 2)
  • plot_critical::Bool =true
    • critical_kws::NamedTuple = (color = :red, linewidth = 2)
  • source::Union{Nothing, NTuple{2, RV}, Matrix{<:RV}} = nothing
    • source_kws::NamedTuple = (color=:red, markersize=10, marker=:star5, heatmap=cgrad([:white, :blue]))
    • image_kws::NamedTuple = (color=:blue, markersize=10, marker=:star5, heatmap=cgrad([:white, :red]))
  • save_plot::Bool = false
    • plot_name::String = "image_plane.png"
    • resolution::Int = 2

Returns

  • fig: A Makie figure object containing the image plane plot.
  • ax: The axis object of the plot for further customization.
source