ensure_figure_storage Subroutine

public subroutine ensure_figure_storage(plots, state)

Lazily allocate plot storage and the active backend so that operations invoked on a default-initialized figure_t do not dereference unallocated arrays (#1638).

Arguments

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