fortplot_svg_legend Module

Standalone SVG legend rendering and layout



Subroutines

public subroutine svg_render_legend_impl(svg_content, entries, x, y, width, height)

Arguments

Type IntentOptional Attributes Name
character(len=:), intent(inout), allocatable :: svg_content
type(legend_entry_t), intent(in), dimension(:) :: entries
real(kind=wp), intent(in) :: x
real(kind=wp), intent(in) :: y
real(kind=wp), intent(in) :: width
real(kind=wp), intent(in) :: height

public subroutine svg_calc_legend_dims_impl(entries, width, height)

Arguments

Type IntentOptional Attributes Name
type(legend_entry_t), intent(in), dimension(:) :: entries
real(kind=wp), intent(out) :: width
real(kind=wp), intent(out) :: height

public subroutine svg_set_legend_border_impl(width)

Arguments

Type IntentOptional Attributes Name
real(kind=wp), intent(in) :: width

public subroutine svg_calc_legend_pos_impl(pa_left, pa_bottom, pa_width, pa_height, loc, x, y)

Arguments

Type IntentOptional Attributes Name
real(kind=wp), intent(in) :: pa_left
real(kind=wp), intent(in) :: pa_bottom
real(kind=wp), intent(in) :: pa_width
real(kind=wp), intent(in) :: pa_height
character(len=*), intent(in) :: loc
real(kind=wp), intent(out) :: x
real(kind=wp), intent(out) :: y