Raster axis labels (title, xlabel, ylabel) rendering functionality Extracted from fortplot_raster_axes.f90 for single responsibility principle
Compute the rightmost edge of y-tick labels relative to the y-axis
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| type(plot_area_t), | intent(in) | :: | plot_area | |||
| integer, | intent(in) | :: | max_width_measured | 
Compute x-position for ylabel to avoid overlapping with y-tick labels
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| integer, | intent(in) | :: | y_tick_label_edge | |||
| integer, | intent(in) | :: | rotated_width | |||
| type(plot_area_t), | intent(in) | :: | plot_area | 
Draw all axis labels (title, xlabel, ylabel)
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| type(raster_image_t), | intent(inout) | :: | raster | |||
| integer, | intent(in) | :: | width | |||
| integer, | intent(in) | :: | height | |||
| type(plot_area_t), | intent(in) | :: | plot_area | |||
| character(len=*), | intent(in) | :: | title | |||
| character(len=*), | intent(in) | :: | xlabel | |||
| character(len=*), | intent(in) | :: | ylabel | 
Render rotated ylabel to the left of y-axis
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| type(raster_image_t), | intent(inout) | :: | raster | |||
| integer, | intent(in) | :: | width | |||
| integer, | intent(in) | :: | height | |||
| type(plot_area_t), | intent(in) | :: | plot_area | |||
| character(len=*), | intent(in) | :: | ylabel | 
Render rotated ylabel along the right side of the axis
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| type(raster_image_t), | intent(inout) | :: | raster | |||
| integer, | intent(in) | :: | width | |||
| integer, | intent(in) | :: | height | |||
| type(plot_area_t), | intent(in) | :: | plot_area | |||
| character(len=*), | intent(in) | :: | ylabel | 
Render an xlabel centered above the plot area
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| type(raster_image_t), | intent(inout) | :: | raster | |||
| integer, | intent(in) | :: | width | |||
| integer, | intent(in) | :: | height | |||
| type(plot_area_t), | intent(in) | :: | plot_area | |||
| character(len=*), | intent(in) | :: | xlabel | 
Render title centered above the plot area
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| type(raster_image_t), | intent(inout) | :: | raster | |||
| integer, | intent(in) | :: | width | |||
| integer, | intent(in) | :: | height | |||
| type(plot_area_t), | intent(in) | :: | plot_area | |||
| character(len=*), | intent(in) | :: | title_text | 
Compute the position for centered title above plot area
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| type(plot_area_t), | intent(in) | :: | plot_area | |||
| character(len=*), | intent(in) | :: | title_text | |||
| character(len=*), | intent(out) | :: | processed_text | |||
| integer, | intent(out) | :: | processed_len | |||
| character(len=*), | intent(out) | :: | escaped_text | |||
| real(kind=wp), | intent(out) | :: | title_px | |||
| real(kind=wp), | intent(out) | :: | title_py |