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
Render all annotations for the current figure
| Type | Intent | Optional | 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 |