fortplot
fortplot Documentation
Source Files
Modules
Procedures
Abstract Interfaces
Derived Types
Programs
get_legend_margins
Function
6 statements
Source File
fortplot_legend_layout.f90
fortplot_legend_layout
get_legend_margins
Contents
public function get_legend_margins(data_width, data_height) result(margins)
Get appropriate margins for legend placement DRY: Centralized margin calculation
Arguments
Type
Intent
Optional
Attributes
Name
real(kind=wp),
intent(in)
::
data_width
real(kind=wp),
intent(in)
::
data_height
Return Value
real(kind=wp), (2)