fplot 1.7.1
A Fortran library providing a convenient interface for plotting with Gnuplot.
Loading...
Searching...
No Matches
fplot_core::plot_data_tri_2d Type Reference

Defines a 2D triangulated data set. More...

Inheritance diagram for fplot_core::plot_data_tri_2d:
fplot_core::plot_data_colored fplot_core::plot_data fplot_core::plot_object

Public Member Functions

procedure, public get_data_string pdt2d_get_data_cmd
 Gets the GNUPLOT command string containing the actual data to plot.
 
procedure, public get_command_string pdt2d_get_cmd
 Returns the appropriate GNUPLOT command string to define the plot object properties.
 
procedure, public define_data pdt2d_define_data
 Defines the data to plot.
 
procedure, public get_line_width pdt2d_get_line_width
 Gets the width of the lines used to draw the triangulation.
 
procedure, public set_line_width pdt2d_set_line_width
 Sets the width of the lines used to draw the triangulation.
 
procedure, public get_line_style pdt2d_get_line_style
 
procedure, public set_line_style pdt2d_set_line_style
 
- 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

real(real64), dimension(:), allocatable m_y
 An array of the y-coordinates of each point.
 
integer(int32), dimension(:,:), allocatable m_indices
 A 3-column matrix containing the indices of each triangle's vertex.
 
real(real32) m_linewidth = 1.0
 The line width.
 
integer(int32) m_linestyle = LINE_SOLID
 The line style.
 
- 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_x
 An array of the x-coordinates of each point.
 

Detailed Description

Defines a 2D triangulated data set.

Definition at line 6911 of file fplot_core.f90.

Member Function/Subroutine Documentation

◆ define_data()

procedure, public fplot_core::plot_data_tri_2d::define_data

Defines the data to plot.

Syntax
subroutine(class(plot_data_tri_2d) this, class(delaunay_tri_2d) tri)
Parameters
[in,out]thisThe plot_data_tri_2d object.
[in]triThe triangulation data to plot.

Definition at line 6936 of file fplot_core.f90.

◆ get_command_string()

procedure, public fplot_core::plot_data_tri_2d::get_command_string
virtual

Returns the appropriate GNUPLOT command string to define the plot object properties.

Implements fplot_core::plot_object.

Definition at line 6926 of file fplot_core.f90.

◆ get_data_string()

procedure, public fplot_core::plot_data_tri_2d::get_data_string
virtual

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

Implements fplot_core::plot_data.

Definition at line 6925 of file fplot_core.f90.

◆ get_line_style()

procedure, public fplot_core::plot_data_tri_2d::get_line_style
Syntax
integer(int32) function get_line_style(class(plot_data_tri_2d) this)
Parameters
[in]thisThe plot_data_tri_2d object.
Returns
The line sytle flag.

Definition at line 6966 of file fplot_core.f90.

◆ get_line_width()

procedure, public fplot_core::plot_data_tri_2d::get_line_width

Gets the width of the lines used to draw the triangulation.

Syntax
real(real32) function get_line_width(class(plot_data_tri_2d) this)
Parameters
[in]thisThe plot_data_tri_2d object.
Returns
The line width.

Definition at line 6946 of file fplot_core.f90.

◆ set_line_style()

procedure, public fplot_core::plot_data_tri_2d::set_line_style
Syntax
subroutine set_line_style(class(plot_data_tri_2d) this, integer(int32) x)
Parameters
[in,out]thisThe plot_data_tri_2d object.
[in]xThe line style. The line style must be one of the following:
  • LINE_DASHED
  • LINE_DASH_DOTTED
  • LINE_DASH_DOT_DOT
  • LINE_DOTTED
  • LINE_SOLID

Definition at line 6982 of file fplot_core.f90.

◆ set_line_width()

procedure, public fplot_core::plot_data_tri_2d::set_line_width

Sets the width of the lines used to draw the triangulation.

Syntax
subroutine set_line_width(class(plot_data_tri_2d) this, real(real32) x)
Parameters
[in,out]thisThe plot_data_tri_2d object.
[in]xThe line width.

Definition at line 6956 of file fplot_core.f90.

Member Data Documentation

◆ m_indices

integer(int32), dimension(:,:), allocatable fplot_core::plot_data_tri_2d::m_indices

A 3-column matrix containing the indices of each triangle's vertex.

Definition at line 6919 of file fplot_core.f90.

◆ m_linestyle

integer(int32) fplot_core::plot_data_tri_2d::m_linestyle = LINE_SOLID

The line style.

Definition at line 6923 of file fplot_core.f90.

◆ m_linewidth

real(real32) fplot_core::plot_data_tri_2d::m_linewidth = 1.0

The line width.

Definition at line 6921 of file fplot_core.f90.

◆ m_x

real(real64), dimension(:), allocatable fplot_core::plot_data_tri_2d::m_x
private

An array of the x-coordinates of each point.

Definition at line 6914 of file fplot_core.f90.

◆ m_y

real(real64), dimension(:), allocatable fplot_core::plot_data_tri_2d::m_y

An array of the y-coordinates of each point.

Definition at line 6916 of file fplot_core.f90.


The documentation for this type was generated from the following file: