Fill colour field as nested solid bands shaded by colormap.
One bandset per contour bin, coolest (1) first so hotter bins overpaint inward.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| integer(kind=int32), | intent(in) | :: | f |
Colour field index, as registered in convdata.f90. |
subroutine draw_field(f) !! Fill colour field as nested solid bands shaded by colormap. !! !! One bandset per contour bin, coolest (1) first so hotter bins overpaint inward. ! Arguments integer(int32), intent(in) :: f !! Colour field index, as registered in convdata.f90. integer(int32) :: lev real(real64) :: t, r, g, b if (f < 1 .or. f > nfields) return if (.not. fcache(fscale(), f)%valid) call build_field_cache(f) call giza_set_fill(1) call giza_set_line_width(1.d0) associate (fc => fcache(fscale(), f)) do lev = 1, fc%nlev t = (real(lev, real64) - 0.5d0)/real(fc%nlev, real64) call colormap(t, r, g, b) call giza_set_colour_representation(7, r, g, b) call giza_set_colour_index(7) call draw_bandset(fc%band(lev)) end do end associate end subroutine draw_field