forcolormap_info Module

The Colormaps_info class offers information about each colormap.


Uses

  • module~~forcolormap_info~~UsesGraph module~forcolormap_info forcolormap_info module~forcolormap_cm_matplotlib forcolormap_cm_matplotlib module~forcolormap_info->module~forcolormap_cm_matplotlib module~forcolormap_cm_miscellaneous forcolormap_cm_miscellaneous module~forcolormap_info->module~forcolormap_cm_miscellaneous module~forcolormap_cm_scientific forcolormap_cm_scientific module~forcolormap_info->module~forcolormap_cm_scientific module~forcolormap_parameters forcolormap_parameters module~forcolormap_info->module~forcolormap_parameters module~forcolormap_cm_matplotlib->module~forcolormap_parameters module~forcolormap_cm_miscellaneous->module~forcolormap_parameters module~forcolormap_cm_scientific->module~forcolormap_parameters iso_fortran_env iso_fortran_env module~forcolormap_parameters->iso_fortran_env

Used by

  • module~~forcolormap_info~~UsedByGraph module~forcolormap_info forcolormap_info module~forcolormap forcolormap module~forcolormap->module~forcolormap_info proc~test_034 test_034 proc~test_034->module~forcolormap_info proc~test_035 test_035 proc~test_035->module~forcolormap_info proc~test_036 test_036 proc~test_036->module~forcolormap_info proc~test_037 test_037 proc~test_037->module~forcolormap_info proc~test_050 test_050 proc~test_050->module~forcolormap_info proc~test_085 test_085 proc~test_085->module~forcolormap_info proc~test_085->module~forcolormap proc~test_086 test_086 proc~test_086->module~forcolormap_info proc~test_087 test_087 proc~test_087->module~forcolormap_info proc~test_088 test_088 proc~test_088->module~forcolormap_info proc~test_089 test_089 proc~test_089->module~forcolormap_info proc~test_038 test_038 proc~test_038->module~forcolormap proc~test_039 test_039 proc~test_039->module~forcolormap proc~test_040 test_040 proc~test_040->module~forcolormap proc~test_041 test_041 proc~test_041->module~forcolormap proc~test_042 test_042 proc~test_042->module~forcolormap proc~test_043 test_043 proc~test_043->module~forcolormap proc~test_044 test_044 proc~test_044->module~forcolormap proc~test_045 test_045 proc~test_045->module~forcolormap proc~test_046 test_046 proc~test_046->module~forcolormap proc~test_047 test_047 proc~test_047->module~forcolormap proc~test_048 test_048 proc~test_048->module~forcolormap proc~test_049 test_049 proc~test_049->module~forcolormap proc~test_051 test_051 proc~test_051->module~forcolormap proc~test_052 test_052 proc~test_052->module~forcolormap proc~test_053 test_053 proc~test_053->module~forcolormap proc~test_054 test_054 proc~test_054->module~forcolormap proc~test_055 test_055 proc~test_055->module~forcolormap proc~test_056 test_056 proc~test_056->module~forcolormap proc~test_057 test_057 proc~test_057->module~forcolormap proc~test_058 test_058 proc~test_058->module~forcolormap proc~test_059 test_059 proc~test_059->module~forcolormap proc~test_060 test_060 proc~test_060->module~forcolormap proc~test_061 test_061 proc~test_061->module~forcolormap proc~test_062 test_062 proc~test_062->module~forcolormap proc~test_063 test_063 proc~test_063->module~forcolormap proc~test_064 test_064 proc~test_064->module~forcolormap proc~test_065 test_065 proc~test_065->module~forcolormap proc~test_066 test_066 proc~test_066->module~forcolormap proc~test_067 test_067 proc~test_067->module~forcolormap proc~test_068 test_068 proc~test_068->module~forcolormap proc~test_069 test_069 proc~test_069->module~forcolormap proc~test_070 test_070 proc~test_070->module~forcolormap proc~test_071 test_071 proc~test_071->module~forcolormap proc~test_072 test_072 proc~test_072->module~forcolormap proc~test_073 test_073 proc~test_073->module~forcolormap proc~test_074 test_074 proc~test_074->module~forcolormap proc~test_075 test_075 proc~test_075->module~forcolormap proc~test_076 test_076 proc~test_076->module~forcolormap proc~test_077 test_077 proc~test_077->module~forcolormap proc~test_078 test_078 proc~test_078->module~forcolormap proc~test_079 test_079 proc~test_079->module~forcolormap proc~test_080 test_080 proc~test_080->module~forcolormap proc~test_081 test_081 proc~test_081->module~forcolormap proc~test_082 test_082 proc~test_082->module~forcolormap proc~test_083 test_083 proc~test_083->module~forcolormap proc~test_084 test_084 proc~test_084->module~forcolormap proc~zfun_1d zfun_1d proc~zfun_1d->module~forcolormap proc~zfun_2d zfun_2d proc~zfun_2d->module~forcolormap program~colormaps_list colormaps_list program~colormaps_list->module~forcolormap program~create create program~create->module~forcolormap program~demo demo program~demo->module~forcolormap program~demo_reverse demo_reverse program~demo_reverse->module~forcolormap program~example1 example1 program~example1->module~forcolormap program~extract extract program~extract->module~forcolormap program~modify modify program~modify->module~forcolormap program~write_info write_info program~write_info->module~forcolormap

Variables

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.


Derived Types

type, private ::  Colormaps_info

Define a derived type that stores metadata for all colormaps.

Components

Type Visibility Attributes Name Initial
type(colormap_metadata), public :: colormaps(222+4+6) = [scientific_metadata, miscellaneous_metadata, matplotlib_metadata]

Type-Bound Procedures

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


Functions

private pure function find_index(this, name) result(idx)

Return the index of a colormap by its name. Returns 0 if not found.

Arguments

Type IntentOptional Attributes Name
class(Colormaps_info), intent(in) :: this
character(len=*), intent(in) :: name

Return Value integer

private pure function get_author(this, idx) result(author)

Return the author of a colormap by its index.

Arguments

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

Return Value character(len=colormap_name_length)

private pure function get_colorbar(this, idx) result(colorbar)

Return the colorbar type of a colormap by its index.

Arguments

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

Return Value character(len=colormap_name_length)

private pure function get_family(this, idx) result(family)

Return the family of a colormap by its index.

Arguments

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

Return Value character(len=colormap_name_length)

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

Return the gradient type of a colormap by its index.

Arguments

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

Return Value character(len=colormap_name_length)

private pure function get_levels(this, idx) result(levels)

Return the number of levels for a given index.

Arguments

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

Return Value integer

private pure function get_license(this, idx) result(license)

Return the license of a colormap by its index.

Arguments

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

Return Value character(len=colormap_name_length)

private pure elemental function get_name(this, idx) result(name)

Return the colormap name for a given index.

Arguments

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

Return Value character(len=colormap_name_length)

private pure elemental function get_ncolormaps(this) result(ncolormaps_)

Return the total number of available colormaps.

Arguments

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

Return Value integer

private pure function get_package(this, idx) result(package)

Return the package name of a colormap by its index.

Arguments

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

Return Value character(len=colormap_name_length)

private pure function get_palette(this, idx) result(palette)

Return the palette type of a colormap by its index.

Arguments

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

Return Value character(len=colormap_name_length)

private pure function get_url(this, idx) result(url)

Return the URL of a colormap by its index.

Arguments

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

Return Value character(len=colormap_name_length)


Subroutines

private impure subroutine write(this, verbose, name, family, gradient, palette, author, license, levels, file_name, append)

Filter colormaps and write metadata.

Arguments

Type IntentOptional 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