calculate_optimal_legend_dimensions Subroutine

public subroutine calculate_optimal_legend_dimensions(labels, data_width, data_height, max_text_width, total_text_width, box)

Calculate optimal legend dimensions using actual text system measurements KISS: Based on measured text content, not estimates

Arguments

Type IntentOptional Attributes Name
character(len=*), intent(in) :: labels(:)
real(kind=wp), intent(in) :: data_width
real(kind=wp), intent(in) :: data_height
real(kind=wp), intent(out) :: max_text_width
real(kind=wp), intent(out) :: total_text_width
type(legend_box_t), intent(inout) :: box