fplot 1.7.1
A Fortran library providing a convenient interface for plotting with Gnuplot.
Loading...
Searching...
No Matches
fplot_plot_data.f90
1! fplot_plot_data.f90
2
3submodule(fplot_core) fplot_plot_data
4contains
5! ------------------------------------------------------------------------------
10 pure module function pd_get_name(this) result(txt)
11 class(plot_data), intent(in) :: this
12 character(len = :), allocatable :: txt
13 txt = trim(this%m_name)
14 end function
15
16! --------------------
21 module subroutine pd_set_name(this, txt)
22 class(plot_data), intent(inout) :: this
23 character(len = *), intent(in) :: txt
24 integer(int32) :: n
25 n = min(len(txt), plotdata_max_name_length)
26 this%m_name = ""
27 if (n /= 0) then
28 this%m_name(1:n) = txt(1:n)
29 end if
30 end subroutine
31
32end submodule
fplot_core