Defines a 2D plot tailored towards bar plotting.
Launches GNUPLOT and draws the plot per the current state of the command list.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(plot), | intent(in) | :: | this |
The plot object. |
||
| logical, | intent(in), | optional | :: | persist |
An optional parameter that can be used to keep GNUPLOT open. |
|
| class(errors), | intent(inout), | optional, | target | :: | err |
An error handling object. |
Gets a pointer to the requested plot_data object.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(plot), | intent(in) | :: | this |
The plot object. |
||
| integer(kind=int32), | intent(in) | :: | i |
The index of the plot_data object. |
A pointer to the requested plot_data object.
Gets a pointer to the requested plot_arrow object.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(plot), | intent(in) | :: | this |
The plot object. |
||
| integer(kind=int32), | intent(in) | :: | i |
The index of the plot_arrow to retrieve. |
The plot_arrow object to retrieve.
Gets a flag determining if the axes should be equally scaled.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(plot), | intent(in) | :: | this |
The plot object. |
Returns true if the axes should be scaled equally; else, false.
Gets the bar width scaling factor.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(plot_bar), | intent(in) | :: | this |
The plot_bar object. |
The scaling factor.
Gets the bottom margin of the plot.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(plot), | intent(in) | :: | this |
The plot object. |
The margin, in percent of screen. A negative value indicates the default margin is used.
Gets a pointer to the colormap object.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(plot), | intent(in) | :: | this |
The plot object. |
A pointer to the colormap object. If no colormap is defined, a null pointer is returned.
Gets the GNUPLOT commands required to draw the plot.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(plot_bar), | intent(in) | :: | this |
The plot_bar object. |
The command string.
Gets the requested plot_label from the plot.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(plot), | intent(in) | :: | this |
The plot object. |
||
| integer(kind=int32), | intent(in) | :: | i |
The index of the plot_label object to retrieve. |
A pointer to the requested plot_label object.
Gets the left margin of the plot.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(plot), | intent(in) | :: | this |
The plot object. |
The margin, in percent of screen. A negative value indicates the default margin is used.
Gets the right margin of the plot.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(plot), | intent(in) | :: | this |
The plot object. |
The margin, in percent of screen. A negative value indicates the default margin is used.
Gets the spacing between clusters of data sets.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(plot_bar), | intent(in) | :: | this |
The [[plot+bar]] object. |
The spacing.
Gets a logical flag determining if the axes size should be squared off.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(plot_2d), | intent(in) | :: | this |
The plot_2d object. |
Returns true if the axes are to be sized to a square; else, false.
Gets a value determining if data sets should be stacked (true) or left side-by-side (false).
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(plot_bar), | intent(in) | :: | this |
The plot_bar object. |
True if multiple data sets should be stacked; else, false.
Gets a value determining if the axis tic marks should point inwards.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(plot), | intent(in) | :: | this |
The plot object. |
Returns true if the tic marks should point inwards; else, false if the tic marks should point outwards.
Gets the top margin of the plot.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(plot), | intent(in) | :: | this |
The plot object. |
The margin, in percent of screen. A negative value indicates the default margin is used.
Gets a flag determining if the secondary y-axis should be displayed.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(plot_2d), | intent(in) | :: | this |
The plot_2d object. |
Returns true if the axis should be displayed; else, false.
Gets the line style used for the x-axis major grid lines.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(plot), | intent(in) | :: | this |
The plot 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 line style used for the x-axis minor grid lines.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(plot), | intent(in) | :: | this |
The plot 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 line style used for the y-axis major grid lines.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(plot), | intent(in) | :: | this |
The plot 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 line style used for the y-axis minor grid lines.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(plot), | intent(in) | :: | this |
The plot 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
Initializes the plot_2d object.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(plot_2d), | intent(inout) | :: | this |
The plot_2d object. |
||
| integer(kind=int32), | intent(in), | optional | :: | term |
An optional input that is used to define the terminal. The default terminal is a WXT terminal. The acceptable inputs are:
|
|
| character(len=*), | intent(in), | optional | :: | fname |
A filename to pass to the terminal in the event the terminal is a file type (e.g. GNUPLOT_TERMINAL_PNG). |
|
| class(errors), | intent(inout), | optional, | target | :: | err |
An error handling object. |
Gets a value determining if a title has been defined for the plot object.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(plot), | intent(in) | :: | this |
The plot object. |
Returns true if a title has been defined for this plot; else, returns false.
Adds a data set to the plot.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(plot_2d), | intent(inout) | :: | this |
The plot_2d object. |
||
| real(kind=real64), | intent(in), | dimension(:) | :: | x |
The x-values. |
|
| real(kind=real64), | intent(in), | dimension(size(x)) | :: | y |
The y-values. |
|
| real(kind=real32), | intent(in), | optional | :: | lw |
The line width. |
|
| character(len=*), | intent(in), | optional | :: | name |
A name to associate with the data set. |
|
| integer(kind=int32), | intent(in), | optional | :: | ls |
The line style. The line style must be one of the following.
|
|
| type(color), | intent(in), | optional | :: | lc |
The line color. |
Pushes a plot_data object onto the stack.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(plot), | intent(inout) | :: | this |
The plot object. |
||
| class(plot_data), | intent(inout) | :: | x |
The plot_data object. |
||
| class(errors), | intent(inout), | optional, | target | :: | err |
An error handling object. |
Pushes a plot_data object onto the stack.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(plot), | intent(inout) | :: | this |
The plot object. |
||
| class(plot_data), | intent(inout) | :: | x |
The plot_data object. |
||
| class(errors), | intent(inout), | optional, | target | :: | err |
An error handling object. |
Adds a data set to the plot.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(plot_2d), | intent(inout) | :: | this |
The plot_2d object. |
||
| real(kind=real64), | intent(in), | dimension(:) | :: | x |
The x-values. |
|
| real(kind=real64), | intent(in), | dimension(size(x)) | :: | y |
The y-values. |
|
| real(kind=real32), | intent(in), | optional | :: | lw |
The line width. |
|
| character(len=*), | intent(in), | optional | :: | name |
A name to associate with the data set. |
|
| integer(kind=int32), | intent(in), | optional | :: | ls |
The line style. The line style must be one of the following.
|
|
| type(color), | intent(in), | optional | :: | lc |
The line color. |
Pushes a new @ref plot_arrow object onto the plot.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(plot), | intent(inout) | :: | this |
The plot object. |
||
| class(plot_arrow), | intent(in) | :: | x |
The plot_arrow object. |
||
| class(errors), | intent(inout), | optional, | target | :: | err |
An error handling object. |
Adds a label to the plot.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(plot), | intent(inout) | :: | this |
The plot object. |
||
| class(plot_label), | intent(in) | :: | lbl |
The plot label. |
||
| class(errors), | intent(inout), | optional, | target | :: | err |
An error handling object. |
Saves a GNUPLOT command file.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(plot), | intent(in) | :: | this |
The plot object. |
||
| character(len=*), | intent(in) | :: | fname |
The filename. |
||
| class(errors), | intent(inout), | optional, | target | :: | err |
An error handling object. |
Sets the requested plot_data object into the plot.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(plot), | intent(inout) | :: | this |
The plot object. |
||
| integer(kind=int32), | intent(in) | :: | i |
The index of the plot_data object. |
||
| class(plot_data), | intent(in) | :: | x |
The plot_data object. |
Sets a plot_arrow into the plot.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(plot), | intent(inout) | :: | this |
The plot object. |
||
| integer(kind=int32), | intent(in) | :: | i |
The index of the plot_arrow object to replace. |
||
| class(plot_arrow), | intent(in) | :: | x |
The new plot_arrow object. |
Sets the bar width scaling factor.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(plot_bar), | intent(inout) | :: | this |
The plot_bar object. |
||
| real(kind=real32), | intent(in) | :: | x |
The scaling factor. The value must be in the set [0, 1]; else, the value will be shifted accordingly. |
Sets the bottom margin of the plot. If the value is negative, the default margin is used.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(plot), | intent(inout) | :: | this |
The plot object. |
||
| real(kind=real32), | intent(in) | :: | x |
The margin, in percent of screen. A negative value indicates the default margin is used. |
Sets the colormap object.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(plot), | intent(inout) | :: | this |
The plot object. |
||
| class(colormap), | intent(in) | :: | x |
The colormap object. Notice, a copy of this object is stored, and the plot object then manages the lifetime of the copy. |
||
| class(errors), | intent(inout), | optional, | target | :: | err |
An error handler object. |
Sets the size of the font used by the plot.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(plot), | intent(inout) | :: | this |
The plot object. |
||
| integer(kind=int32), | intent(in) | :: | x |
The font size, in points. If a value of zero is provided, the font size is reset to its default value; or, if a negative value is provided, the absolute value of the supplied value is utilized. |
Sets the specified plot_label object.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(plot), | intent(inout) | :: | this |
The plot object. |
||
| integer(kind=int32), | intent(in) | :: | i |
The index of the plot_label to replace. |
||
| class(plot_label), | intent(in) | :: | x |
The new plot_label object. |
Sets the left margin of the plot. If the value is negative, the default margin is used.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(plot), | intent(inout) | :: | this |
The plot object. |
||
| real(kind=real32), | intent(in) | :: | x |
The margin, in percent of screen. A negative value indicates the default margin is used. |
Sets the right margin of the plot. If the value is negative, the default margin is used.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(plot), | intent(inout) | :: | this |
The plot object. |
||
| real(kind=real32), | intent(in) | :: | x |
The margin, in percent of screen. A negative value indicates the default margin is used. |
Sets the spacing between clusters of data sets.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(plot_bar), | intent(inout) | :: | this |
The [[plot+bar]] object. |
||
| integer(kind=int32), | intent(in) | :: | x |
The spacing. |
Sets a logical flag determining if the axes size should be squared off.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(plot_2d), | intent(inout) | :: | this |
The plot_2d object. |
||
| logical, | intent(in) | :: | x |
Set to true if the axes are to be sized to a square; else, false. |
Gets a value determining if data sets should be stacked (true) or left side-by-side (false).
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(plot_bar), | intent(inout) | :: | this |
The plot_bar object. |
||
| logical, | intent(in) | :: | x |
True if multiple data sets should be stacked; else, false. |
Sets a value determining if the axis tic marks should point inwards.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(plot), | intent(inout) | :: | this |
The plot object. |
||
| logical, | intent(in) | :: | x |
Set to true if the tic marks should point inwards; else, false if the tic marks should point outwards. |
Sets the top margin of the plot. If the value is negative, the default margin is used.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(plot), | intent(inout) | :: | this |
The plot object. |
||
| real(kind=real32), | intent(in) | :: | x |
The margin, in percent of screen. A negative value indicates the default margin is used. |
Sets the height and width of the plot window.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(plot), | intent(inout) | :: | this |
The plot object. |
||
| integer(kind=int32), | intent(in) | :: | width |
The plot window width. |
||
| integer(kind=int32), | intent(in) | :: | height |
The plot window height. |
Sets the line style used for the x-axis major grid lines.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(plot), | intent(inout) | :: | this |
The plot object. |
||
| integer(kind=int32), | intent(in) | :: | x |
The line style. The line style must be one of the following.
|
Sets the line style used for the x-axis minor grid lines.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(plot), | intent(inout) | :: | this |
The plot object. |
||
| integer(kind=int32), | intent(in) | :: | x |
The line style. The line style must be one of the following.
|
Sets the line style used for the y-axis major grid lines.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(plot), | intent(inout) | :: | this |
The plot object. |
||
| integer(kind=int32), | intent(in) | :: | x |
The line style. The line style must be one of the following.
|
Sets the line style used for the y-axis minor grid lines.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(plot), | intent(inout) | :: | this |
The plot object. |
||
| integer(kind=int32), | intent(in) | :: | x |
The line style. The line style must be one of the following.
|