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.
Get figure width (compatibility wrapper)
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(figure_state_t), | intent(in) | :: | state |
Get figure height (compatibility wrapper)
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(figure_state_t), | intent(in) | :: | state |
Get rendered state (compatibility wrapper)
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(figure_state_t), | intent(in) | :: | state |
Get number of plots (compatibility wrapper)
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(figure_state_t), | intent(in) | :: | state |
Check if backend is allocated (compatibility wrapper)
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(figure_state_t), | intent(in) | :: | state |
Get x minimum value (compatibility wrapper)
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(figure_state_t), | intent(in) | :: | state |
Get x maximum value (compatibility wrapper)
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(figure_state_t), | intent(in) | :: | state |
Get y minimum value (compatibility wrapper)
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(figure_state_t), | intent(in) | :: | state |
Get y maximum value (compatibility wrapper)
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(figure_state_t), | intent(in) | :: | state |
Set rendered state (compatibility wrapper)
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(figure_state_t), | intent(inout) | :: | state | |||
logical, | intent(in) | :: | rendered |
Setup PNG backend for animation (compatibility wrapper)
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(figure_state_t), | intent(inout) | :: | state |
Extract RGB data for animation (compatibility wrapper)
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(figure_state_t), | intent(inout) | :: | state | |||
real(kind=wp), | intent(out) | :: | rgb_data(:,:,:) |
Extract PNG data for animation (compatibility wrapper)
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(figure_state_t), | intent(inout) | :: | state | |||
integer(kind=1), | intent(out), | allocatable | :: | png_data(:) | ||
integer, | intent(out) | :: | status |
Set backend color (compatibility wrapper)
Type | Intent | Optional | 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 |
Draw line using backend (compatibility wrapper)
Type | Intent | Optional | 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 |