Coordinate transformation functions for text annotations
Provides: - Multiple coordinate system transformations - Data, figure, and axis coordinate support - Logarithmic scale transformation support - Visibility checking in coordinate space
4-argument coordinate transformation (figure or axis coordinates)
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| type(text_annotation_t), | intent(in) | :: | annotation | |||
| real(kind=wp), | intent(in) | :: | area_or_size(:) | |||
| real(kind=wp), | intent(out) | :: | pixel_x | |||
| real(kind=wp), | intent(out) | :: | pixel_y | 
5-argument coordinate transformation (data coordinates)
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| type(text_annotation_t), | intent(in) | :: | annotation | |||
| real(kind=wp), | intent(in) | :: | plot_area(:) | |||
| real(kind=wp), | intent(in) | :: | data_bounds(:) | |||
| real(kind=wp), | intent(out) | :: | pixel_x | |||
| real(kind=wp), | intent(out) | :: | pixel_y | 
Check if annotation is visible within plot area
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| type(text_annotation_t), | intent(in) | :: | annotation | |||
| real(kind=wp), | intent(in) | :: | plot_area(4) | 
Transform annotation coordinates with logarithmic scaling support
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| type(text_annotation_t), | intent(in) | :: | annotation | |||
| real(kind=wp), | intent(in) | :: | plot_area(4) | |||
| real(kind=wp), | intent(in) | :: | data_bounds(4) | |||
| logical, | intent(in) | :: | log_scale_x | |||
| logical, | intent(in) | :: | log_scale_y | |||
| real(kind=wp), | intent(out) | :: | pixel_x | |||
| real(kind=wp), | intent(out) | :: | pixel_y |