Defines a function to plot.
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.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(plot_data), | intent(inout) | :: | this |
The plot_data object. |
Clears the function from this data set.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(plot_data_function), | intent(inout) | :: | this |
The plot_data_function object. |
Creates a unique name for the GNUPLOT datablock representing this data set.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(plot_data), | intent(inout) | :: | this |
The plot_data object. |
Defines the function to plot.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(plot_data_function), | intent(inout) | :: | this |
The plot_data_function object. |
||
| character(len=*), | intent(in) | :: | f |
The function to plot (e.g. sin(x)). |
||
| character(len=*), | intent(in) | :: | fname |
The name of the function to plot (e.g. f(x)). |
||
| real(kind=real64), | intent(in), | optional | :: | minX |
The minimum value to plot. If not supplied, this will default to a value of -1. |
|
| real(kind=real64), | intent(in), | optional | :: | maxX |
The maximum x value to plot. If not supplied, this will default to a value of 1. |
|
| character(len=*), | intent(in), | optional | :: | name |
An optional input that specifies the name that will be displayed in the legend. If nothing is supplied, the input string for parameter f will be utilized. |
Gets the color index.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(plot_data_colored), | intent(in) | :: | this |
The plot_data_colored object. |
The index value.
Gets the GNUPLOT command string for this object.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(plot_data_function), | intent(in) | :: | this |
The plot_data_function object. |
The command string.
Gets the GNUPLOT command string defining the data for this object.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(plot_data_function), | intent(in) | :: | this |
The plot_data_function object. |
The command string.
Gets the name to associate with the datablock in the actual GNUPLOT plot file.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(plot_data), | intent(in) | :: | this |
The plot_data object. |
The name.
Gets a value determining if a line should be drawn.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(line_plot_data), | intent(in) | :: | this |
The line_plot_data object. |
Returns true if the line should be drawn; else, false.
Gets a value determining if data point markers should be drawn.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(line_plot_data), | intent(in) | :: | this |
The line_plot_data object. |
Returns true if the markers should be drawn; else, false.
Gets the function to plot.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(plot_data_function), | intent(in) | :: | this |
The plot_data_function object. |
The function.
Gets the name of the function to plot (e.g. f(x), g(x), etc.).
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(plot_data_function), | intent(in) | :: | this |
The plot_data_function object. |
The function name.
Gets the object color.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(plot_data_colored), | intent(in) | :: | this |
The plot_data_colored object. |
The color.
Gets the line style.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(line_plot_data), | intent(in) | :: | this |
The line_plot_data object. |
The line style. The line style must be one of the following.
LINE_DASHED
LINE_DASH_DOTTED
LINE_DASH_DOT_DOT
LINE_DOTTED
LINE_SOLID
Gets the width of the line, in pixels.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(line_plot_data), | intent(in) | :: | this |
The line_plot_data object. |
The line width.
Gets the marker frequency.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(line_plot_data), | intent(in) | :: | this |
The line_plot_data object. |
The marker frequency.
Gets the marker scaling.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(line_plot_data), | intent(in) | :: | this |
The line_plot_data object. |
The scaling factor.
Gets the marker style.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(line_plot_data), | intent(in) | :: | this |
The line_plot_data object. |
The marker type. The marker type must be one of the following:
MARKER_ASTERISK
MARKER_EMPTY_CIRCLE
MARKER_EMPTY_NABLA
MARKER_EMPTY_RHOMBUS
MARKER_EMPTY_SQUARE
MARKER_EMPTY_TRIANGLE
MARKER_FILLED_CIRCLE
MARKER_FILLED_NABLA
MARKER_FILLED_RHOMBUS
MARKER_FILLED_SQUARE
MARKER_FILLED_TRIANGLE
MARKER_PLUS
MARKER_X
Gets the maximum X plot range value.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(plot_data_function), | intent(in) | :: | this |
The plot_data_function object. |
The value.
Gets the minimum X plot range value.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(plot_data_function), | intent(in) | :: | this |
The plot_data_function object. |
The value.
Gets the name to associate with this data set.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(plot_data), | intent(in) | :: | this |
The plot_data object. |
The name.
Gets the number of times to sample the function.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(plot_data_function), | intent(in) | :: | this |
The plot_data_function object. |
The sample count.
Sets the color index.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(plot_data_colored), | intent(inout) | :: | this |
The plot_data_colored object. |
||
| integer(kind=int32), | intent(in) | :: | x |
The index value. |
Sets the name to associate with the datablock in the actual GNUPLOT plot file.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(plot_data), | intent(inout) | :: | this |
The plot_data object. |
||
| character(len=*), | intent(in) | :: | x |
The name. |
Sets a value determining if a line should be drawn.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(line_plot_data), | intent(inout) | :: | this |
The line_plot_data object. |
||
| logical, | intent(in) | :: | x |
Set to true if the line should be drawn; else, false. |
Sets a value determining if data point markers should be drawn.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(line_plot_data), | intent(inout) | :: | this |
The line_plot_data object. |
||
| logical, | intent(in) | :: | x |
Set to true if the markers should be drawn; else, false. |
Sets the object color.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(plot_data_colored), | intent(inout) | :: | this |
The plot_data_colored object. |
||
| type(color), | intent(in) | :: | x |
The color. |
Sets the line style.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(line_plot_data), | intent(inout) | :: | this |
The line_plot_data object. |
||
| integer(kind=int32), | intent(in) | :: | x |
The line style. The line style must be one of the following.
|
Sets the width of the line, in pixels.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(line_plot_data), | intent(inout) | :: | this |
The line_plot_data object. |
||
| real(kind=real32), | intent(in) | :: | x |
The line width. |
Sets the marker frequency.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(line_plot_data), | intent(inout) | :: | this |
The line_plot_data object. |
||
| integer(kind=int32), | intent(in) | :: | x |
The marker frequency. |
Sets the marker scaling.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(line_plot_data), | intent(inout) | :: | this |
The line_plot_data object. |
||
| real(kind=real32), | intent(in) | :: | x |
The scaling factor. |
Sets the marker style.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(line_plot_data), | intent(inout) | :: | this |
The line_plot_data object. |
||
| integer(kind=int32), | intent(in) | :: | x |
The marker type. The marker type must be one of the following:
|
Sets the maximum X plot range value.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(plot_data_function), | intent(inout) | :: | this |
The plot_data_function object. |
||
| real(kind=real64), | intent(in) | :: | x |
The value. |
Sets the minimum X plot range value.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(plot_data_function), | intent(inout) | :: | this |
The plot_data_function object. |
||
| real(kind=real64), | intent(in) | :: | x |
The value. |
Sets the name to associate with this data set.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(plot_data), | intent(inout) | :: | this |
The plot_data object. |
||
| character(len=*), | intent(in) | :: | txt |
The name. |
Sets the number of times to sample the function. This variable is global for all function plots as GNUPLOT does not allow inline sample modification currently. Hopefully this will change somewhere down the road.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(plot_data_function), | intent(inout) | :: | this |
The plot_data_function object. |
||
| integer(kind=int32), | intent(in) | :: | x |
The sample count. Must be greater than 1. |