Common margin and axis functionality for plotting backends
This module provides shared functionality for calculating margins, plot areas, and drawing axes across different backends (PNG, PDF, etc.) Follows DRY principle by centralizing common plotting layout logic.
Generate tick mark positions for basic axes
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(plot_area_t), | intent(in) | :: | plot_area | |||
integer, | intent(in) | :: | num_ticks_x | |||
integer, | intent(in) | :: | num_ticks_y | |||
real(kind=wp), | intent(out) | :: | x_positions(:) | |||
real(kind=wp), | intent(out) | :: | y_positions(:) | |||
integer, | intent(out) | :: | actual_num_x | |||
integer, | intent(out) | :: | actual_num_y |
Draw basic rectangular axes frame Uses a procedure pointer to be backend-agnostic
Type | Intent | Optional | Attributes | Name | |||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
type(plot_area_t), | intent(in) | :: | plot_area | ||||||||||||||||||||||||||||||||||||||
private subroutine draw_line_proc(x1, y1, x2, y2)Arguments
|