@@ -12,6 +12,7 @@ module fplot_plot_data
1212 private
1313 public :: plot_data
1414 public :: pd_get_string_result
15+ public :: pd_clear_action
1516 public :: plot_data_colored
1617 public :: scatter_plot_data
1718 public :: spd_get_int_value
@@ -34,9 +35,9 @@ module fplot_plot_data
3435 procedure , public :: set_datablock_name = > pd_set_datablock_name
3536 procedure , public :: create_unique_datablock_name = > &
3637 pd_create_unique_datablock_name
37- procedure , public :: clean = > pd_clean
38+ procedure , public :: clear_all = > pd_clear
3839 procedure (pd_get_string_result), deferred, public :: get_data_string
39- procedure (pd_clean_action ), deferred, public :: clean_data
40+ procedure (pd_clear_action ), deferred, public :: clear_data
4041 end type
4142
4243 interface
@@ -49,8 +50,8 @@ function pd_get_string_result(this) result(x)
4950 ! ! The string.
5051 end function
5152
52- subroutine pd_clean_action (this )
53- ! ! Performs a cleaning operation.
53+ subroutine pd_clear_action (this )
54+ ! ! Performs a clearing operation.
5455 import plot_data
5556 class(plot_data), intent (inout ) :: this
5657 ! ! The plot_data object.
@@ -259,16 +260,16 @@ subroutine pd_create_unique_datablock_name(this)
259260 end subroutine
260261
261262! ------------------------------------------------------------------------------
262- subroutine pd_clean (this )
263- ! ! Cleans the data set by removing stored data and clearing the
264- ! ! GNUPLOT datablock name. This routine also calls clean_data to
263+ subroutine pd_clear (this )
264+ ! ! Clears the data set by removing stored data and clearing the
265+ ! ! GNUPLOT datablock name. This routine also calls clear_data to
265266 ! ! ensure the data is cleared from the data set as well as the datablock
266267 ! ! name.
267268 class(plot_data), intent (inout ) :: this
268269 ! ! The plot_data object.
269270
270271 call this% set_datablock_name(" " )
271- call this% clean_data ()
272+ call this% clear_data ()
272273 end subroutine
273274
274275! ******************************************************************************
0 commit comments