The Colormaps_info class offers information about each colormap.
| Type | Visibility | Attributes | Name | Initial | |||
|---|---|---|---|---|---|---|---|
| type(Colormaps_info), | public | :: | cmap_info | = | Colormaps_info([scientific_metadata, miscellaneous_metadata, matplotlib_metadata]) |
Global instance providing access to colormap metadata. |
Define a derived type that stores metadata for all colormaps.
| Type | Visibility | Attributes | Name | Initial | |||
|---|---|---|---|---|---|---|---|
| type(colormap_metadata), | public | :: | colormaps(222+4+6) | = | [scientific_metadata, miscellaneous_metadata, matplotlib_metadata] |
| procedure, public :: find_index | Return index by name (0 if not found) |
| procedure, public :: get_author | Return the author of a colormap by index |
| procedure, public :: get_colorbar | Return the colorbar type of a colormap by index |
| procedure, public :: get_family | Return the family of a colormap by index |
| procedure, public :: get_gradient | Return the gradient type of a colormap by index |
| procedure, public :: get_levels | Return the number of levels by index |
| procedure, public :: get_license | Return the license of a colormap by index |
| procedure, public :: get_name | Return the name of a colormap by index |
| procedure, public :: get_ncolormaps | Return the total number of colormaps |
| procedure, public :: get_package | Return the package name of a colormap by index |
| procedure, public :: get_palette | Return the palette type of a colormap by index |
| procedure, public :: get_url | Return the URL of a colormap by index |
| procedure, public :: write | Filter and output colormap metadata |
Return the index of a colormap by its name. Returns 0 if not found.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(Colormaps_info), | intent(in) | :: | this | |||
| character(len=*), | intent(in) | :: | name |
Return the author of a colormap by its index.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(Colormaps_info), | intent(in) | :: | this | |||
| integer, | intent(in) | :: | idx |
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 |
Return the family of a colormap by its index.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(Colormaps_info), | intent(in) | :: | this | |||
| integer, | intent(in) | :: | idx |
Return the gradient type of a colormap by its index.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(Colormaps_info), | intent(in) | :: | this | |||
| integer, | intent(in) | :: | idx |
Return the number of levels for a given index.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(Colormaps_info), | intent(in) | :: | this | |||
| integer, | intent(in) | :: | idx |
Return the license of a colormap by its index.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(Colormaps_info), | intent(in) | :: | this | |||
| integer, | intent(in) | :: | idx |
Return the colormap name for a given index.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(Colormaps_info), | intent(in) | :: | this | |||
| integer, | intent(in) | :: | idx |
Return the total number of available colormaps.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(Colormaps_info), | intent(in) | :: | this |
Return the package name of a colormap by its index.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(Colormaps_info), | intent(in) | :: | this | |||
| integer, | intent(in) | :: | idx |
Return the palette type of a colormap by its index.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(Colormaps_info), | intent(in) | :: | this | |||
| integer, | intent(in) | :: | idx |
Return the URL of a colormap by its index.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(Colormaps_info), | intent(in) | :: | this | |||
| integer, | intent(in) | :: | idx |
Filter colormaps and write metadata.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(Colormaps_info), | intent(in) | :: | this | |||
| integer, | intent(in), | optional | :: | verbose | ||
| character(len=*), | intent(in), | optional | :: | name | ||
| character(len=*), | intent(in), | optional | :: | family | ||
| character(len=*), | intent(in), | optional | :: | gradient | ||
| character(len=*), | intent(in), | optional | :: | palette | ||
| character(len=*), | intent(in), | optional | :: | author | ||
| character(len=*), | intent(in), | optional | :: | license | ||
| integer, | intent(in), | optional | :: | levels | ||
| character(len=*), | intent(in), | optional | :: | file_name | ||
| logical, | intent(in), | optional | :: | append |