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

Defines a GNUPLOT PNG terminal object. More...

Inheritance diagram for fplot_core::png_terminal:
fplot_core::terminal fplot_core::plot_object

Public Member Functions

procedure, public get_filename png_get_filename
 Gets the filename for the output PNG file.
 
procedure, public set_filename png_set_filename
 Sets the filename for the output PNG file.
 
procedure, public get_id_string png_get_term_string
 Retrieves a GNUPLOT terminal identifier string.
 
procedure, public get_command_string png_get_command_string
 Returns the appropriate GNUPLOT command string to establish appropriate parameters.
 
- Public Member Functions inherited from fplot_core::terminal
procedure, public get_window_width term_get_window_width
 Gets the width of the plot window.
 
procedure, public set_window_width term_set_window_width
 Sets the width of the plot window.
 
procedure, public get_window_height term_get_window_height
 Gets the height of the plot window.
 
procedure, public set_window_height term_set_window_height
 Sets the height of the plot window.
 
procedure, public get_command_string term_get_command_string
 Returns the appropriate GNUPLOT command string to establish appropriate parameters.
 
procedure, public get_plot_window_number term_get_plot_window_number
 Gets the targeted plot window number.
 
procedure, public set_plot_window_number term_set_plot_window_number
 Sets the targeted plot window number.
 
procedure, public get_title term_get_title
 Gets the plot window's title.
 
procedure, public set_title term_set_title
 Sets the plot window's title.
 
procedure, public get_font_name term_get_font_name
 Gets the name of the font used for text displayed by the graph.
 
procedure, public set_font_name term_set_font_name
 Sets the name of the font used for text displayed by the graph.
 
procedure, public get_font_size term_get_font_size
 Gets the size of the font used by the graph.
 
procedure, public set_font_size term_set_font_size
 Sets the size of the font used by the graph.
 

Public Attributes

character(len=gnuplot_max_path_lengthm_fname = "default.png"
 The filename of the PNG file to write.
 
- Public Attributes inherited from fplot_core::terminal
integer(int32) m_windowwidth = GNUPLOT_DEFAULT_WINDOW_WIDTH
 The window width, in pixels.
 
integer(int32) m_termid = 0
 The plot window number.
 
character(len=gnuplot_max_label_lengthm_title = ""
 The plot window title.
 
logical m_hastitle = .false.
 Determines if a plot title is defined.
 
character(len=gnuplot_max_label_lengthm_fontname = GNUPLOT_DEFAULT_FONTNAME
 The font used by the graph.
 
integer(int32) m_fontsize = GNUPLOT_DEFAULT_FONT_SIZE
 The size of the font used by the graph.
 

Private Attributes

character(len=3) m_id = "png"
 The terminal ID string.
 

Detailed Description

Defines a GNUPLOT PNG terminal object.

Definition at line 1522 of file fplot_core.f90.

Member Function/Subroutine Documentation

◆ get_command_string()

procedure, public fplot_core::png_terminal::get_command_string
virtual

Returns the appropriate GNUPLOT command string to establish appropriate parameters.

Syntax
character(len = :) function, allocatable get_command_string(class(png_terminal) this)
Parameters
[in]thisThe terminal object.
Returns
The GNUPLOT command string.

Implements fplot_core::plot_object.

Definition at line 1569 of file fplot_core.f90.

◆ get_filename()

procedure, public fplot_core::png_terminal::get_filename

Gets the filename for the output PNG file.

Syntax
character(len = :) function, allocatable get_filename(class(png_terminal) this)
Parameters
[in]thisThe png_terminal object.
Returns
The filename, including the file extension (.png).

Definition at line 1538 of file fplot_core.f90.

◆ get_id_string()

procedure, public fplot_core::png_terminal::get_id_string
virtual

Retrieves a GNUPLOT terminal identifier string.

Syntax
character(len = :) function, allocatable get_id_string(class(png_terminal) this)
Parameters
[in]thisThe png_terminal object.
Returns
The string.

Implements fplot_core::terminal.

Definition at line 1558 of file fplot_core.f90.

◆ set_filename()

procedure, public fplot_core::png_terminal::set_filename

Sets the filename for the output PNG file.

Syntax
subroutine set_filename(class(png_terminal) this, character(len = *) txt)
Parameters
[in,out]thisThe png_terminal object.
[in]txtThe filename, including the file extension (.png).

Definition at line 1548 of file fplot_core.f90.

Member Data Documentation

◆ m_fname

character(len = gnuplot_max_path_length) fplot_core::png_terminal::m_fname = "default.png"

The filename of the PNG file to write.

Definition at line 1527 of file fplot_core.f90.

◆ m_id

character(len = 3) fplot_core::png_terminal::m_id = "png"
private

The terminal ID string.

Definition at line 1525 of file fplot_core.f90.


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