fortplot_annotation_rendering Module

Annotation rendering dispatch system for fortplot

This module provides the missing bridge between stored annotations and backend-specific rendering methods. It processes annotations from the figure state and dispatches them to appropriate backends.

CRITICAL: This module REUSES existing backend infrastructure: - ASCII backend: Uses text_element_t and add_text_element - Raster backend: Uses raster_draw_text directly
- PDF backend: Uses pdf text rendering methods



Subroutines

public subroutine render_figure_annotations(backend, annotations, annotation_count, x_min, x_max, y_min, y_max, width, height, margin_left, margin_right, margin_bottom, margin_top)

Render all annotations for the current figure

Read more…

Arguments

Type IntentOptional Attributes Name
class(plot_context), intent(inout) :: backend
type(text_annotation_t), intent(in) :: annotations(:)
integer, intent(in) :: annotation_count
real(kind=wp), intent(in) :: x_min
real(kind=wp), intent(in) :: x_max
real(kind=wp), intent(in) :: y_min
real(kind=wp), intent(in) :: y_max
integer, intent(in) :: width
integer, intent(in) :: height
real(kind=wp), intent(in) :: margin_left
real(kind=wp), intent(in) :: margin_right
real(kind=wp), intent(in) :: margin_bottom
real(kind=wp), intent(in) :: margin_top