fortplot_contour_rendering Module

Contour plot rendering module

This module handles all contour plot rendering operations including contour level tracing, marching squares algorithm, and contour line drawing. Contour lines are smoothed using Catmull-Rom spline interpolation to reduce the polygonal appearance from marching squares.



Subroutines

public subroutine render_contour_plot(backend, plot_data, x_min_t, x_max_t, y_min_t, y_max_t, xscale, yscale, symlog_threshold, width, height, margin_left, margin_right, margin_bottom, margin_top)

Render a contour plot

Arguments

Type IntentOptional Attributes Name
class(plot_context), intent(inout) :: backend
type(plot_data_t), intent(in) :: plot_data
real(kind=wp), intent(in) :: x_min_t
real(kind=wp), intent(in) :: x_max_t
real(kind=wp), intent(in) :: y_min_t
real(kind=wp), intent(in) :: y_max_t
character(len=*), intent(in) :: xscale
character(len=*), intent(in) :: yscale
real(kind=wp), intent(in) :: symlog_threshold
integer, intent(in) :: width
integer, intent(in) :: height
real(kind=wp), intent(in) :: margin_left
real(kind=wp), intent(in) :: margin_right
real(kind=wp), intent(in) :: margin_bottom
real(kind=wp), intent(in) :: margin_top