fplot 1.7.1
A Fortran library providing a convenient interface for plotting with Gnuplot.
|
Defines a two-dimensional plot data set. More...
Public Member Functions | |
procedure, public | get_axes_string pd2d_get_axes_cmd |
Gets the GNUPLOT command string defining which axes the data is to be plotted against. | |
procedure, public | get_data_string pd2d_get_data_cmd |
Gets the GNUPLOT command string containing the actual data to plot. | |
procedure, public | get_count pd2d_get_data_count |
Gets the number of data points. | |
procedure, public | get_x pd2d_get_x_data |
Gets the requested X data point. | |
procedure, public | set_x pd2d_set_x_data |
Sets the requested X data point. | |
procedure, public | get_y pd2d_get_y_data |
Gets the requested Y data point. | |
procedure, public | set_y pd2d_set_y_data |
Sets the requested Y data point. | |
procedure, public | get_draw_against_y2 pd2d_get_draw_against_y2 |
Gets a value determining if the data should be plotted against the secondary y-axis. | |
procedure, public | set_draw_against_y2 pd2d_set_draw_against_y2 |
Sets a value determining if the data should be plotted against the secondary y-axis. | |
generic, public | define_data pd2d_set_data_1 |
Defines the data set. | |
generic, public | define_data pd2d_set_data_2 |
Defines the data set. | |
procedure | pd2d_set_data_1 pd2d_set_data_1 |
procedure | pd2d_set_data_2 pd2d_set_data_2 |
procedure, public | get_x_data pd2d_get_x_array |
Gets the stored X data array. | |
procedure, public | get_y_data pd2d_get_y_array |
Gets the stored Y data array. | |
procedure, public | get_color_data pd2d_get_c_array |
Gets the stored color scaling data array. | |
procedure, public | get_point_size_data pd2d_get_ps_array |
Gets the stored point size data array. | |
Public Member Functions inherited from fplot_core::scatter_plot_data | |
procedure, public | get_command_string spd_get_cmd |
Gets the GNUPLOT command string to represent this scatter_plot_data object. | |
procedure, public | get_line_width spd_get_line_width |
Gets the width of the line, in pixels. | |
procedure, public | set_line_width spd_set_line_width |
Sets the width of the line, in pixels. | |
procedure, public | get_line_style spd_get_line_style |
Gets the line style. | |
procedure, public | set_line_style spd_set_line_style |
Sets the line style. | |
procedure, public | get_draw_line spd_get_draw_line |
Gets a value determining if a line should be drawn. | |
procedure, public | set_draw_line spd_set_draw_line |
Sets a value determining if a line should be drawn. | |
procedure, public | get_draw_markers spd_get_draw_markers |
Gets a value determining if data point markers should be drawn. | |
procedure, public | set_draw_markers spd_set_draw_markers |
Sets a value determining if data point markers should be drawn. | |
procedure, public | get_marker_style spd_get_marker_style |
Gets the marker style. | |
procedure, public | set_marker_style spd_set_marker_style |
Sets the marker style. | |
procedure, public | get_marker_scaling spd_get_marker_scaling |
Gets the marker scaling. | |
procedure, public | set_marker_scaling spd_set_marker_scaling |
Sets the marker scaling. | |
procedure, public | get_marker_frequency spd_get_marker_frequency |
Gets the marker frequency. | |
procedure, public | set_marker_frequency spd_set_marker_frequency |
Sets the marker frequency. | |
procedure, public | get_simplify_data spd_get_simplify_data |
Gets a value determining if the stored data should be simplified (reduced) before passing to GNUPLOT. | |
procedure, public | set_simplify_data spd_set_simplify_data |
Sets a value determining if the stored data should be simplified (reduced) before passing to GNUPLOT. | |
procedure, public | get_simplification_factor spd_get_simplify_factor |
Gets a factor used to establish the simplification tolerance. | |
procedure, public | set_simplification_factor spd_set_simplify_factor |
Sets a factor used to establish the simplification tolerance. The tolerance is established by multplying this factor by the range of the dependent variable data. | |
procedure, public | get_use_data_dependent_colors spd_get_data_dependent_colors |
Gets a value determing if data-dependent colors should be used. | |
procedure, public | set_use_data_dependent_colors spd_set_data_dependent_colors |
Sets a value determing if data dependent colors should be used. | |
procedure, public | get_fill_curve spd_get_filled |
Gets a logical value determining if a filled curve should be drawn. | |
procedure, public | set_fill_curve spd_set_filled |
Sets a logical value determining if a filled curve should be drawn. | |
procedure, public | get_use_variable_size_points spd_get_use_var_point_size |
Gets a logical value determining if variable sized data points should be used. The default is false, such that points will be of a constant size. | |
procedure, public | set_use_variable_size_points spd_set_use_var_point_size |
Sets a logical value determining if variable sized data points should be used. The default is false, such that points will be of a constant size. | |
Public Member Functions inherited from fplot_core::plot_data_colored | |
procedure, public | get_line_color pdc_get_line_color |
Gets the line color. | |
procedure, public | set_line_color pdc_set_line_color |
Sets the line color. | |
Public Member Functions inherited from fplot_core::plot_data | |
procedure, public | get_name pd_get_name |
Gets the name to associate with this data set. | |
procedure, public | set_name pd_set_name |
Sets the name to associate with this data set. | |
Public Attributes | |
logical | m_usey2 = .false. |
Draw against the secondary y axis? | |
Public Attributes inherited from fplot_core::scatter_plot_data | |
logical | m_drawmarkers = .false. |
Draw the markers? | |
integer(int32) | m_markerfrequency = 1 |
Marker frequency. | |
real(real32) | m_linewidth = 1.0 |
Line width. | |
integer(int32) | m_linestyle = LINE_SOLID |
Line style. | |
integer(int32) | m_markertype = MARKER_X |
Marker type. | |
real(real32) | m_markersize = 1.0 |
Marker size multiplier. | |
logical | m_simplifydata = .true. |
True if large data sets should be simplified before sending to GNUPLOT. | |
real(real64) | m_simplifyfactor = 1.0d-3 |
A scaling factor used to establish the simplification tolerance. The simplification tolerance is established by multiplying this factor by the range in the dependent variable data. | |
logical | m_datadependentcolors = .false. |
Determines if the data should utilize data-dependent colors. | |
logical | m_filledcurve = .false. |
Fill the curve? | |
logical | m_usevariablesizepoints = .false. |
Use variable size data points? | |
Public Attributes inherited from fplot_core::plot_data_colored | |
logical | m_useautocolor = .true. |
Let the object choose colors automatically. | |
integer(int32) | m_colorindex = 1 |
The color index to use, assuming we're using auto color. | |
Private Attributes | |
real(real64), dimension(:,:), allocatable | m_data |
An N-by-2 matrix containing the x and y data points. | |
Defines a two-dimensional plot data set.
Definition at line 4033 of file fplot_core.f90.
generic, public fplot_core::plot_data_2d::define_data |
Defines the data set.
[in,out] | this | The plot_data_2d object. |
[in] | x | An N-element array containing the x coordinate data. |
[in] | y | An N-element array containing the y coordinate data. |
[out] | err | An optional errors-based object that if provided can be used to retrieve information relating to any errors encountered during execution. If not provided, a default implementation of the errors class is used internally to provide error handling. Possible errors and warning messages that may be encountered are as follows.
|
[in,out] | this | The plot_data_2d object. |
[in] | y | An N-element array containing the y-coordinate data. This data will be plotted against its own index. |
[out] | err | An optional errors-based object that if provided can be used to retrieve information relating to any errors encountered during execution. If not provided, a default implementation of the errors class is used internally to provide error handling. Possible errors and warning messages that may be encountered are as follows.
|
[in,out] | this | The plot_data_2d object. |
[in] | x | An N-element array containing the x coordinate data. |
[in] | y | An N-element array containing the y coordinate data. |
[in] | c | An N-element array defining how color should vary with the current colormap for each value. |
[in] | ps | An N-element array defining the size of each data point. |
[out] | err | An optional errors-based object that if provided can be used to retrieve information relating to any errors encountered during execution. If not provided, a default implementation of the errors class is used internally to provide error handling. Possible errors and warning messages that may be encountered are as follows.
|
Definition at line 4199 of file fplot_core.f90.
generic, public fplot_core::plot_data_2d::define_data |
Defines the data set.
[in,out] | this | The plot_data_2d object. |
[in] | x | An N-element array containing the x coordinate data. |
[in] | y | An N-element array containing the y coordinate data. |
[out] | err | An optional errors-based object that if provided can be used to retrieve information relating to any errors encountered during execution. If not provided, a default implementation of the errors class is used internally to provide error handling. Possible errors and warning messages that may be encountered are as follows.
|
[in,out] | this | The plot_data_2d object. |
[in] | y | An N-element array containing the y-coordinate data. This data will be plotted against its own index. |
[out] | err | An optional errors-based object that if provided can be used to retrieve information relating to any errors encountered during execution. If not provided, a default implementation of the errors class is used internally to provide error handling. Possible errors and warning messages that may be encountered are as follows.
|
[in,out] | this | The plot_data_2d object. |
[in] | x | An N-element array containing the x coordinate data. |
[in] | y | An N-element array containing the y coordinate data. |
[in] | c | An N-element array defining how color should vary with the current colormap for each value. |
[in] | ps | An N-element array defining the size of each data point. |
[out] | err | An optional errors-based object that if provided can be used to retrieve information relating to any errors encountered during execution. If not provided, a default implementation of the errors class is used internally to provide error handling. Possible errors and warning messages that may be encountered are as follows.
|
Definition at line 4199 of file fplot_core.f90.
|
virtual |
Gets the GNUPLOT command string defining which axes the data is to be plotted against.
[in] | this | The plot_data_2d object. |
Implements fplot_core::scatter_plot_data.
Definition at line 4050 of file fplot_core.f90.
procedure, public fplot_core::plot_data_2d::get_color_data |
Gets the stored color scaling data array.
[in] | this | The plot_data_2d object. |
Definition at line 4232 of file fplot_core.f90.
|
virtual |
Gets the number of data points.
[in] | this | The plot_data_2d object. |
Implements fplot_core::scatter_plot_data.
Definition at line 4071 of file fplot_core.f90.
|
virtual |
Gets the GNUPLOT command string containing the actual data to plot.
[in] | this | The plot_data_2d object. |
Implements fplot_core::plot_data.
Definition at line 4061 of file fplot_core.f90.
procedure, public fplot_core::plot_data_2d::get_draw_against_y2 |
Gets a value determining if the data should be plotted against the secondary y-axis.
[in] | this | The plot_data_2d object. |
Definition at line 4127 of file fplot_core.f90.
procedure, public fplot_core::plot_data_2d::get_point_size_data |
Gets the stored point size data array.
[in] | this | The plot_data_2d object. |
Definition at line 4242 of file fplot_core.f90.
|
virtual |
Gets the requested X data point.
[in] | this | The plot_data_2d object. |
[in] | index | The index of the data point to retrieve. |
Implements fplot_core::scatter_plot_data.
Definition at line 4082 of file fplot_core.f90.
procedure, public fplot_core::plot_data_2d::get_x_data |
Gets the stored X data array.
[in] | this | The plot_data_2d object. |
Definition at line 4212 of file fplot_core.f90.
|
virtual |
Gets the requested Y data point.
[in] | this | The plot_data_2d object. |
[in] | index | The index of the data point to retrieve. |
Implements fplot_core::scatter_plot_data.
Definition at line 4104 of file fplot_core.f90.
procedure, public fplot_core::plot_data_2d::get_y_data |
Gets the stored Y data array.
[in] | this | The plot_data_2d object. |
Definition at line 4222 of file fplot_core.f90.
procedure fplot_core::plot_data_2d::pd2d_set_data_1 |
Definition at line 4200 of file fplot_core.f90.
procedure fplot_core::plot_data_2d::pd2d_set_data_2 |
Definition at line 4201 of file fplot_core.f90.
procedure, public fplot_core::plot_data_2d::set_draw_against_y2 |
Sets a value determining if the data should be plotted against the secondary y-axis.
[in,out] | this | The plot_data_2d object. |
[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. |
Definition at line 4139 of file fplot_core.f90.
|
virtual |
Sets the requested X data point.
[in,out] | this | The plot_data_2d object. |
[in] | index | The index of the data point to replace. |
[in] | x | The data point. |
Implements fplot_core::scatter_plot_data.
Definition at line 4093 of file fplot_core.f90.
|
virtual |
Sets the requested Y data point.
[in,out] | this | The plot_data_2d object. |
[in] | index | The index of the data point to replace. |
[in] | x | The data point. |
Implements fplot_core::scatter_plot_data.
Definition at line 4115 of file fplot_core.f90.
|
private |
An N-by-2 matrix containing the x and y data points.
Definition at line 4036 of file fplot_core.f90.
logical fplot_core::plot_data_2d::m_usey2 = .false. |
Draw against the secondary y axis?
Definition at line 4038 of file fplot_core.f90.