fortplot
Documentation
Source Files
Modules
Procedures
Abstract Interfaces
Derived Types
Programs
calculate_legend_position
Subroutine
83 statements
Source File
fortplot_legend_drawing.f90
fortplot_legend_drawing
calculate_legend_position
Contents
public subroutine calculate_legend_position(legend, backend, x, y)
Calculate legend position based on backend and position setting
Arguments
Type
Intent
Optional
Attributes
Name
type(
legend_t
),
intent(in)
::
legend
class(
plot_context
),
intent(in)
::
backend
real(kind=wp),
intent(out)
::
x
real(kind=wp),
intent(out)
::
y