get_gradient Function

private pure function get_gradient(this, idx) result(gradient)

Return the gradient type of a colormap by its index.

Type Bound

Colormaps_info

Arguments

Type IntentOptional Attributes Name
class(Colormaps_info), intent(in) :: this
integer, intent(in) :: idx

Return Value character(len=colormap_name_length)


Source Code

   pure function get_gradient(this, idx) result(gradient)
      class(Colormaps_info), intent(in) :: this
      integer, intent(in) :: idx
      character(colormap_name_length) :: gradient
      gradient = trim(this%colormaps(idx)%gradient)
   end function get_gradient