fortplot_figure_accessors Module

Accessor functions for figure_t

Provides getter and setter functions extracted from fortplot_figure_core to meet QADS size limits.



Functions

public function get_figure_width(state) result(width)

Get figure width from state

Arguments

Type IntentOptional Attributes Name
type(figure_state_t), intent(in) :: state

Return Value integer

public function get_figure_height(state) result(height)

Get figure height from state

Arguments

Type IntentOptional Attributes Name
type(figure_state_t), intent(in) :: state

Return Value integer

public function get_figure_rendered(state) result(rendered)

Get rendered state

Arguments

Type IntentOptional Attributes Name
type(figure_state_t), intent(in) :: state

Return Value logical

public function get_figure_plot_count(state) result(plot_count)

Get number of plots from state

Arguments

Type IntentOptional Attributes Name
type(figure_state_t), intent(in) :: state

Return Value integer

public function get_figure_plots(plots) result(plots_ptr)

Get pointer to plots array

Arguments

Type IntentOptional Attributes Name
type(plot_data_t), intent(in), target :: plots(:)

Return Value type(plot_data_t), pointer, (:)

public function get_figure_x_min(state) result(x_min)

Get x minimum value from state

Arguments

Type IntentOptional Attributes Name
type(figure_state_t), intent(in) :: state

Return Value real(kind=wp)

public function get_figure_x_max(state) result(x_max)

Get x maximum value from state

Arguments

Type IntentOptional Attributes Name
type(figure_state_t), intent(in) :: state

Return Value real(kind=wp)

public function get_figure_y_min(state) result(y_min)

Get y minimum value from state

Arguments

Type IntentOptional Attributes Name
type(figure_state_t), intent(in) :: state

Return Value real(kind=wp)

public function get_figure_y_max(state) result(y_max)

Get y maximum value from state

Arguments

Type IntentOptional Attributes Name
type(figure_state_t), intent(in) :: state

Return Value real(kind=wp)

public function is_backend_associated(state) result(is_associated)

Check if backend is allocated

Arguments

Type IntentOptional Attributes Name
type(figure_state_t), intent(in) :: state

Return Value logical


Subroutines

public subroutine set_figure_rendered(state, rendered)

Set rendered state

Arguments

Type IntentOptional Attributes Name
type(figure_state_t), intent(inout) :: state
logical, intent(in) :: rendered

public subroutine setup_png_for_animation(state)

Setup PNG backend for animation

Arguments

Type IntentOptional Attributes Name
type(figure_state_t), intent(inout) :: state

public subroutine extract_rgb_for_animation(state, rgb_data)

Extract RGB data for animation

Arguments

Type IntentOptional Attributes Name
type(figure_state_t), intent(in) :: state
real(kind=wp), intent(out) :: rgb_data(:,:,:)

public subroutine extract_png_for_animation(state, png_data, status)

Extract PNG data for animation

Arguments

Type IntentOptional Attributes Name
type(figure_state_t), intent(in) :: state
integer(kind=1), intent(out), allocatable :: png_data(:)
integer, intent(out) :: status

public subroutine set_backend_color(state, r, g, b)

Set backend color

Arguments

Type IntentOptional Attributes Name
type(figure_state_t), intent(inout) :: state
real(kind=wp), intent(in) :: r
real(kind=wp), intent(in) :: g
real(kind=wp), intent(in) :: b

public subroutine draw_backend_line(state, x1, y1, x2, y2)

Draw line using backend

Arguments

Type IntentOptional Attributes Name
type(figure_state_t), intent(inout) :: state
real(kind=wp), intent(in) :: x1
real(kind=wp), intent(in) :: y1
real(kind=wp), intent(in) :: x2
real(kind=wp), intent(in) :: y2