Colormap functionality for contour plots Provides color interpolation for different colormaps like matplotlib
Validate if colormap name is supported
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
character(len=*), | intent(in) | :: | colormap |
Get RGB color from colormap for a normalized value [0,1]
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
real(kind=wp), | intent(in) | :: | value | |||
character(len=*), | intent(in) | :: | colormap | |||
real(kind=wp), | intent(out), | dimension(3) | :: | color |
Convert data value to RGB color using colormap
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
real(kind=wp), | intent(in) | :: | z_value | |||
real(kind=wp), | intent(in) | :: | z_min | |||
real(kind=wp), | intent(in) | :: | z_max | |||
character(len=*), | intent(in) | :: | colormap | |||
real(kind=wp), | intent(out), | dimension(3) | :: | color |