fplot 1.7.1
A Fortran library providing a convenient interface for plotting with Gnuplot.
|
A colormap object for a surface plot. More...
Public Member Functions | |
procedure, public | get_command_string cm_get_cmd |
Gets the GNUPLOT command string to represent this colormap object. | |
procedure(cm_get_string_result), deferred, public | get_color_string cm_get_string_result |
Gets the GNUPLOT string defining the color distribution. For instance, this routine could return the string: '0 "dark-blue", 1 "blue", 2 "cyan", 3 "green", 4 "yellow", 5 "orange", 6 "red", 7 "dark-red"'. This string would result in a rainbow type map. | |
procedure, public | get_label cm_get_label |
Gets the label to associate with the colorbar. | |
procedure, public | set_label cm_set_label |
Sets the label to associate with the colorbar. | |
procedure, public | get_horizontal cm_get_horizontal |
Gets a logical value determining if the colormap should be drawn horizontally and below the plot. | |
procedure, public | set_horizontal cm_set_horizontal |
Sets a logical value determining if the colormap should be drawn horizontally and below the plot. | |
procedure, public | get_draw_border cm_get_draw_border |
Gets a logical value determining if the border should be drawn. | |
procedure, public | set_draw_border cm_set_draw_border |
Sets a logical value determining if the border should be drawn. | |
procedure, public | get_show_tics cm_get_show_tics |
Gets a logical value determining if the tic marks should be drawn. | |
procedure, public | set_show_tics cm_set_show_tics |
Sets a logical value determining if the tic marks should be drawn. | |
Public Attributes | |
logical | m_horizontal = .false. |
The colormap should be drawn horizontally. | |
logical | m_drawborder = .true. |
Draw the colormap border. | |
logical | m_showtics = .true. |
Show the tic marks. | |
Private Attributes | |
character(len=:), allocatable | m_label |
The label to associate with the colormap. | |
A colormap object for a surface plot.
Definition at line 2377 of file fplot_core.f90.
|
pure virtual |
Gets the GNUPLOT string defining the color distribution. For instance, this routine could return the string: '0 "dark-blue", 1 "blue", 2 "cyan", 3 "green", 4 "yellow", 5 "orange", 6 "red", 7 "dark-red"'. This string would result in a rainbow type map.
Implemented in fplot_core::cool_colormap, fplot_core::custom_colormap, fplot_core::earth_colormap, fplot_core::grey_colormap, fplot_core::hot_colormap, fplot_core::parula_colormap, and fplot_core::rainbow_colormap.
Definition at line 2403 of file fplot_core.f90.
|
virtual |
Gets the GNUPLOT command string to represent this colormap object.
[in] | this | The colormap object. |
Implements fplot_core::plot_object.
Definition at line 2398 of file fplot_core.f90.
procedure, public fplot_core::colormap::get_draw_border |
Gets a logical value determining if the border should be drawn.
[in] | this | The colormap object. |
Definition at line 2458 of file fplot_core.f90.
procedure, public fplot_core::colormap::get_horizontal |
Gets a logical value determining if the colormap should be drawn horizontally and below the plot.
[in] | this | The colormap object. |
Definition at line 2435 of file fplot_core.f90.
procedure, public fplot_core::colormap::get_label |
Gets the label to associate with the colorbar.
[in] | this | The colormap object. |
Definition at line 2413 of file fplot_core.f90.
procedure, public fplot_core::colormap::get_show_tics |
Gets a logical value determining if the tic marks should be drawn.
[in] | this | The colormap object. |
Definition at line 2480 of file fplot_core.f90.
procedure, public fplot_core::colormap::set_draw_border |
Sets a logical value determining if the border should be drawn.
[in,out] | this | The colormap object. |
[in] | x | Set to true if the border should be drawn; else, false. |
Definition at line 2469 of file fplot_core.f90.
procedure, public fplot_core::colormap::set_horizontal |
Sets a logical value determining if the colormap should be drawn horizontally and below the plot.
[in,out] | this | The colormap object. |
[in] | x | Set to true if the colormap should be drawn horizontally; else, false. |
Definition at line 2447 of file fplot_core.f90.
procedure, public fplot_core::colormap::set_label |
Sets the label to associate with the colorbar.
[in,out] | this | The colormap object. |
[in] | x | The label. |
Definition at line 2423 of file fplot_core.f90.
procedure, public fplot_core::colormap::set_show_tics |
Sets a logical value determining if the tic marks should be drawn.
[in,out] | this | The colormap object. |
[in] | x | Set to true if the tic marks should be drawn; else, false. |
Sets a logical value determining if the border should be drawn.
[in,out] | this | The colormap object. |
[in] | x | Set to true if the border should be drawn; else, false. |
Definition at line 2502 of file fplot_core.f90.
logical fplot_core::colormap::m_drawborder = .true. |
Draw the colormap border.
Definition at line 2384 of file fplot_core.f90.
logical fplot_core::colormap::m_horizontal = .false. |
The colormap should be drawn horizontally.
Definition at line 2382 of file fplot_core.f90.
|
private |
The label to associate with the colormap.
Definition at line 2380 of file fplot_core.f90.
logical fplot_core::colormap::m_showtics = .true. |
Show the tic marks.
Definition at line 2386 of file fplot_core.f90.