fortplot_legend Module

Legend module following SOLID principles

This module re-exports procedures from specialized submodules: fortplot_legend_state - type definitions fortplot_legend_drawing - legend box and entry drawing fortplot_legend_layout - legend layout calculation (external)



Functions

public function create_legend() result(legend)

Factory function following Dependency Inversion

Arguments

None

Return Value type(legend_t)


Subroutines

public subroutine legend_render(this, backend)

Render legend - delegates to drawing module

Arguments

Type IntentOptional Attributes Name
class(legend_t), intent(in) :: this
class(plot_context), intent(inout) :: backend