fortplot_ascii_polar Module

Text-backend polar data compositing (issue #2072).

Draws polar curve samples directly onto the ASCII canvas as single-glyph marks, clipped to the circular frame and kept clear of the radial-label corridor. Using the layer policy (#2069) means angular and radial labels, stamped last as text elements, always win the cells they need while the curve stays a readable outline instead of a dense character mass.



Subroutines

public subroutine render_polar_data_text(ctx, theta, r, n, center_x, center_y, radius, r_max, theta_offset, clockwise, x_min, x_max, y_min, y_max, glyph)

Composite one polar series onto the text canvas.

Arguments

Type IntentOptional Attributes Name
type(ascii_context), intent(inout) :: ctx
real(kind=wp), intent(in), contiguous :: theta(:)
real(kind=wp), intent(in), contiguous :: r(:)
integer, intent(in) :: n
real(kind=wp), intent(in) :: center_x
real(kind=wp), intent(in) :: center_y
real(kind=wp), intent(in) :: radius
real(kind=wp), intent(in) :: r_max
real(kind=wp), intent(in) :: theta_offset
logical, intent(in) :: clockwise
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
character(len=1), intent(in) :: glyph