fortplot_figure_compatibility Module

Backward compatibility methods for figure_t

This module provides backward compatibility methods that were previously part of fortplot_figure_core but extracted to reduce file size below QADS compliance limits (<500 lines target, <1000 lines hard limit).

Single Responsibility: Maintain backward compatibility with animation and other modules that depend on legacy figure_t interfaces.



Functions

public function get_figure_width_compat(state) result(width)

Get figure width (compatibility wrapper)

Arguments

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

Return Value integer

public function get_figure_height_compat(state) result(height)

Get figure height (compatibility wrapper)

Arguments

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

Return Value integer

public function get_figure_rendered_compat(state) result(rendered)

Get rendered state (compatibility wrapper)

Arguments

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

Return Value logical

public function get_figure_plot_count_compat(state) result(plot_count)

Get number of plots (compatibility wrapper)

Arguments

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

Return Value integer

public function backend_associated_compat(state) result(is_associated)

Check if backend is allocated (compatibility wrapper)

Arguments

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

Return Value logical

public function get_figure_x_min_compat(state) result(x_min)

Get x minimum value (compatibility wrapper)

Arguments

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

Return Value real(kind=wp)

public function get_figure_x_max_compat(state) result(x_max)

Get x maximum value (compatibility wrapper)

Arguments

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

Return Value real(kind=wp)

public function get_figure_y_min_compat(state) result(y_min)

Get y minimum value (compatibility wrapper)

Arguments

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

Return Value real(kind=wp)

public function get_figure_y_max_compat(state) result(y_max)

Get y maximum value (compatibility wrapper)

Arguments

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

Return Value real(kind=wp)


Subroutines

public subroutine set_figure_rendered_compat(state, rendered)

Set rendered state (compatibility wrapper)

Arguments

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

public subroutine setup_png_backend_for_animation_compat(state)

Setup PNG backend for animation (compatibility wrapper)

Arguments

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

public subroutine extract_rgb_data_for_animation_compat(state, rgb_data)

Extract RGB data for animation (compatibility wrapper)

Arguments

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

public subroutine extract_png_data_for_animation_compat(state, png_data, status)

Extract PNG data for animation (compatibility wrapper)

Arguments

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

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

Set backend color (compatibility wrapper)

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 backend_line_compat(state, x1, y1, x2, y2)

Draw line using backend (compatibility wrapper)

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