fortplot_polar_rendering Module

Polar projection rendering for polygon backends

Renders circular plot boundary, radial gridlines (spokes), angular gridlines (concentric circles), and angular tick labels.



Subroutines

public subroutine render_polar_boundary(backend, center_x, center_y, radius, line_width, color)

Render circular boundary for polar plot

Arguments

Type IntentOptional Attributes Name
class(plot_context), intent(inout) :: backend
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), optional :: line_width
real(kind=wp), intent(in), optional :: color(3)

public subroutine render_polar_radial_gridlines(backend, center_x, center_y, radius, n_spokes, theta_offset, clockwise, color, alpha)

Render radial gridlines (spokes) from center to boundary

Arguments

Type IntentOptional Attributes Name
class(plot_context), intent(inout) :: backend
real(kind=wp), intent(in) :: center_x
real(kind=wp), intent(in) :: center_y
real(kind=wp), intent(in) :: radius
integer, intent(in) :: n_spokes
real(kind=wp), intent(in) :: theta_offset
logical, intent(in) :: clockwise
real(kind=wp), intent(in), optional :: color(3)
real(kind=wp), intent(in), optional :: alpha

public subroutine render_polar_angular_gridlines(backend, center_x, center_y, r_max, n_circles, color, alpha)

Render angular gridlines (concentric circles)

Arguments

Type IntentOptional Attributes Name
class(plot_context), intent(inout) :: backend
real(kind=wp), intent(in) :: center_x
real(kind=wp), intent(in) :: center_y
real(kind=wp), intent(in) :: r_max
integer, intent(in) :: n_circles
real(kind=wp), intent(in), optional :: color(3)
real(kind=wp), intent(in), optional :: alpha

public subroutine render_polar_angular_ticks(backend, center_x, center_y, radius, n_ticks, theta_offset, clockwise, label_offset)

Render angular tick labels around the polar plot boundary

Arguments

Type IntentOptional Attributes Name
class(plot_context), intent(inout) :: backend
real(kind=wp), intent(in) :: center_x
real(kind=wp), intent(in) :: center_y
real(kind=wp), intent(in) :: radius
integer, intent(in) :: n_ticks
real(kind=wp), intent(in) :: theta_offset
logical, intent(in) :: clockwise
real(kind=wp), intent(in), optional :: label_offset

public subroutine render_polar_data(backend, theta, r, n, center_x, center_y, r_scale, theta_offset, clockwise, color)

Render polar data as connected line segments

Arguments

Type IntentOptional Attributes Name
class(plot_context), intent(inout) :: backend
real(kind=wp), intent(in) :: theta(:)
real(kind=wp), intent(in) :: r(:)
integer, intent(in) :: n
real(kind=wp), intent(in) :: center_x
real(kind=wp), intent(in) :: center_y
real(kind=wp), intent(in) :: r_scale
real(kind=wp), intent(in) :: theta_offset
logical, intent(in) :: clockwise
real(kind=wp), intent(in), optional :: color(3)