plot_data Derived Type

type, public, abstract, extends(plot_object) :: plot_data

A container for plot data.


Contents


Type-Bound Procedures

procedure, public :: clear_all => pd_clear

  • private subroutine pd_clear(this)

    Clears the data set by removing stored data and clearing the GNUPLOT datablock name. This routine also calls clear_data to ensure the data is cleared from the data set as well as the datablock name.

    Arguments

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

    The plot_data object.

procedure(pd_clear_action), public, deferred :: clear_data

  • subroutine pd_clear_action(this) Prototype

    Performs a clearing operation.

    Arguments

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

    The plot_data object.

procedure, public :: create_unique_datablock_name => pd_create_unique_datablock_name

  • private subroutine pd_create_unique_datablock_name(this)

    Creates a unique name for the GNUPLOT datablock representing this data set.

    Arguments

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

    The plot_data object.

procedure(get_string_result), public, deferred :: get_command_string

  • function get_string_result(this) result(x) Prototype

    Returns a string from a plot_object.

    Arguments

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

    The plot_object object.

    Return Value character(len=:), allocatable

    The result string.

procedure(pd_get_string_result), public, deferred :: get_data_string

  • function pd_get_string_result(this) result(x) Prototype

    Retrieves a string from a plot_data object.

    Arguments

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

    The plot_data object.

    Return Value character(len=:), allocatable

    The string.

procedure, public :: get_datablock_name => pd_get_datablock_name

  • private pure function pd_get_datablock_name(this) result(rst)

    Gets the name to associate with the datablock in the actual GNUPLOT plot file.

    Arguments

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

    The plot_data object.

    Return Value character(len=:), allocatable

    The name.

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_datablock_name => pd_set_datablock_name

  • private subroutine pd_set_datablock_name(this, x)

    Sets the name to associate with the datablock in the actual GNUPLOT plot file.

    Arguments

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

    The plot_data object.

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

    The name.

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.