PlotClass Module

It creates a PDF file with plots.


Uses


Derived Types

type, public ::  SubPlot_

Subplot in the main plot.

Components

Type Visibility Attributes Name Initial
character(len=:), public, allocatable :: xlabel
character(len=:), public, allocatable :: ylabel
character(len=:), public, allocatable :: name
real(kind=real64), public, allocatable :: xr(:)
real(kind=real64), public, allocatable :: yr(:)
type(SubPlot_), public, pointer :: subplot => null()
real(kind=real64), public, pointer :: x(:) => null()
real(kind=real64), public, pointer :: y(:) => null()
character(len=:), public, allocatable :: comment

type, public ::  Plot_

Plotter

Components

Type Visibility Attributes Name Initial
type(SubPlot_), public, allocatable :: subplot(:,:)

Type-Bound Procedures

procedure, public :: setLayout => setLayoutPlotClass ../../../

set Layout of the plots

procedure, public :: show => showPlotClass ../../../

Show the plots

procedure, public :: pdf => pdfPlotClass ../../../

Create pdf file from the plots

procedure, public :: png => pngPlotClass ../../../

Create png file from the plots


Subroutines

public subroutine setLayoutPlotClass(this, h_v_size)

Arguments

Type IntentOptional Attributes Name
class(Plot_), intent(inout) :: this
integer(kind=int32), intent(in) :: h_v_size(1:2)

public subroutine showPlotClass(this, name)

Arguments

Type IntentOptional Attributes Name
class(Plot_), intent(in) :: this
character(len=*), intent(in) :: name

public subroutine pdfPlotClass(this, name)

Arguments

Type IntentOptional Attributes Name
class(Plot_), intent(in) :: this
character(len=*), intent(in) :: name

public subroutine pngPlotClass(this, name)

Arguments

Type IntentOptional Attributes Name
class(Plot_), intent(in) :: this
character(len=*), intent(in) :: name