Return the colorbar type of a colormap by its index.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(Colormaps_info), | intent(in) | :: | this | |||
| integer, | intent(in) | :: | idx |
pure function get_colorbar(this, idx) result(colorbar) class(Colormaps_info), intent(in) :: this integer, intent(in) :: idx character(colormap_name_length) :: colorbar colorbar = trim(this%colormaps(idx)%colorbar) end function get_colorbar