add_parametric_surface_plot_data Subroutine

public subroutine add_parametric_surface_plot_data(plots, plot_count, max_plots, colors, x_grid, y_grid, z_grid, label, cmap, show_colorbar, alpha, edgecolor, linewidth, filled, row_stride, column_stride)

Register a filled or wireframe tensor-product surface in physical three-dimensional coordinates.

add_surface stores a height field z(y,x). A torus, sphere, or trimmed spline patch instead needs independent x and y coordinates at every grid point. Keep the ordinary grid fields as the compact extent metadata used by the 3-D axes, and retain the full coordinates in the parametric fields for the renderer.

Arguments

Type IntentOptional Attributes Name
type(plot_data_t), intent(inout) :: plots(:)
integer, intent(inout) :: plot_count
integer, intent(in) :: max_plots
real(kind=wp), intent(in), contiguous :: colors(:,:)
real(kind=wp), intent(in), contiguous :: x_grid(:,:)
real(kind=wp), intent(in), contiguous :: y_grid(:,:)
real(kind=wp), intent(in), contiguous :: z_grid(:,:)
character(len=*), intent(in), optional :: label
character(len=*), intent(in), optional :: cmap
logical, intent(in), optional :: show_colorbar
real(kind=wp), intent(in), optional :: alpha
real(kind=wp), intent(in), optional :: edgecolor(3)
real(kind=wp), intent(in), optional :: linewidth
logical, intent(in), optional :: filled
integer, intent(in), optional :: row_stride
integer, intent(in), optional :: column_stride