filled_plot_data Derived Type

type, public, extends(plot_data_colored) :: filled_plot_data

Defines a two-dimensional filled plot data set.


Contents


Type-Bound Procedures

procedure, public :: define_data => fpd_define_data

  • private subroutine fpd_define_data(this, x, y, yc, err)

    Defines the data set.

    Arguments

    Type IntentOptional Attributes Name
    class(filled_plot_data), intent(inout) :: this

    The filled_plot_data object.

    real(kind=real64), intent(in), dimension(:) :: x

    An N-element array containing the x coordinate data.

    real(kind=real64), intent(in), dimension(:) :: y

    An N-element array containing the y coordinate data.

    real(kind=real64), intent(in), dimension(:) :: yc

    An N-element array containing the constraining curve y coordinate data.

    class(errors), intent(inout), optional, target :: err

    An error handling object.

procedure, public :: get_axes_string => fpd_get_axes_cmd

  • private function fpd_get_axes_cmd(this) result(x)

    Gets the GNUPLOT command string defining which axes the data is to be plotted against.

    Arguments

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

    The filled_plot_data object.

    Return Value character(len=:), allocatable

    The command string.

procedure, public :: get_color_index => pdc_get_color_index

  • private pure function pdc_get_color_index(this) result(x)

    Gets the color index.

    Arguments

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

    The plot_data_colored object.

    Return Value integer(kind=int32)

    The index value.

procedure, public :: get_command_string => fpd_get_cmd

  • private function fpd_get_cmd(this) result(x)

    Gets the GNUPLOT command string to represent this filled_plot_data object.

    Arguments

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

    The filled_plot_data object.

    Return Value character(len=:), allocatable

    The command string.

procedure, public :: get_data_string => fpd_get_data_cmd

  • private function fpd_get_data_cmd(this) result(x)

    Gets the GNUPLOT command string containing the actual data to plot.

    Arguments

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

    The filled_plot_data object.

    Return Value character(len=:), allocatable

    The command string.

procedure, public :: get_draw_against_y2 => fpd_get_draw_against_y2

  • private pure function fpd_get_draw_against_y2(this) result(x)

    Gets a value determining if the data should be plotted against the secondary y-axis.

    Arguments

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

    The filled_plot_data object.

    Return Value logical

    Returns true if the data should be plotted against the secondary y-axis; else, false to plot against the primary y-axis.

procedure, public :: get_line_color => pdc_get_line_color

  • private pure function pdc_get_line_color(this) result(x)

    Gets the object color.

    Arguments

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

    The plot_data_colored object.

    Return Value type(color)

    The color.

procedure, public :: get_name => pd_get_name

  • private pure function pd_get_name(this) result(txt)

    Gets the name to associate with this data set.

    Arguments

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

    The plot_data object.

    Return Value character(len=:), allocatable

    The name.

procedure, public :: set_color_index => pdc_set_color_index

  • private subroutine pdc_set_color_index(this, x)

    Sets the color index.

    Arguments

    Type IntentOptional Attributes Name
    class(plot_data_colored), intent(inout) :: this

    The plot_data_colored object.

    integer(kind=int32), intent(in) :: x

    The index value.

procedure, public :: set_draw_against_y2 => fpd_set_draw_against_y2

  • private subroutine fpd_set_draw_against_y2(this, x)

    Sets a value determining if the data should be plotted against the secondary y-axis.

    Arguments

    Type IntentOptional Attributes Name
    class(filled_plot_data), intent(inout) :: this

    The filled_plot_data object.

    logical, intent(in) :: x

    Set to true if the data should be plotted against the secondary y-axis; else, false to plot against the primary y-axis.

procedure, public :: set_line_color => pdc_set_line_color

  • private subroutine pdc_set_line_color(this, x)

    Sets the object color.

    Arguments

    Type IntentOptional Attributes Name
    class(plot_data_colored), intent(inout) :: this

    The plot_data_colored object.

    type(color), intent(in) :: x

    The color.

procedure, public :: set_name => pd_set_name

  • private subroutine pd_set_name(this, txt)

    Sets the name to associate with this data set.

    Arguments

    Type IntentOptional Attributes Name
    class(plot_data), intent(inout) :: this

    The plot_data object.

    character(len=*), intent(in) :: txt

    The name.