validate_pcolormesh_grid Subroutine

public subroutine validate_pcolormesh_grid(x_coords, y_coords, c_data, error)

Validate grid dimensions for pcolormesh with flexible dimension support

Accepts both Fortran-style and C-style dimension conventions: - Fortran: C(ny,nx) with x(nx+1), y(ny+1)
- C-style: C(nx,ny) with x(nx+1), y(ny+1)

Arguments

Type IntentOptional Attributes Name
real(kind=wp), intent(in) :: x_coords(:)
real(kind=wp), intent(in) :: y_coords(:)
real(kind=wp), intent(in) :: c_data(:,:)
type(fortplot_error_t), intent(out), optional :: error