fortplot_raster_axes Module

Raster axes coordination module (refactored for size compliance) Orchestrates tick and label rendering through specialized modules



Functions

public function map_value_to_plot_x(value, data_min, data_max, plot_area, scale, symlog_threshold) result(px)

Arguments

Type IntentOptional Attributes Name
real(kind=wp), intent(in) :: value
real(kind=wp), intent(in) :: data_min
real(kind=wp), intent(in) :: data_max
type(plot_area_t), intent(in) :: plot_area
character(len=*), intent(in) :: scale
real(kind=wp), intent(in) :: symlog_threshold

Return Value real(kind=wp)

public function map_value_to_plot_y(value, data_min, data_max, plot_area, scale, symlog_threshold) result(py)

Arguments

Type IntentOptional Attributes Name
real(kind=wp), intent(in) :: value
real(kind=wp), intent(in) :: data_min
real(kind=wp), intent(in) :: data_max
type(plot_area_t), intent(in) :: plot_area
character(len=*), intent(in) :: scale
real(kind=wp), intent(in) :: symlog_threshold

Return Value real(kind=wp)


Subroutines

public subroutine raster_draw_axes_and_labels(raster, width, height, plot_area, xscale, yscale, symlog_threshold, x_min, x_max, y_min, y_max, title, xlabel, ylabel, x_date_format, y_date_format)

Arguments

Type IntentOptional Attributes Name
type(raster_image_t), intent(inout) :: raster
integer, intent(in) :: width
integer, intent(in) :: height
type(plot_area_t), intent(in) :: plot_area
character(len=*), intent(in) :: xscale
character(len=*), intent(in) :: yscale
real(kind=wp), intent(in) :: symlog_threshold
real(kind=wp), intent(in) :: x_min
real(kind=wp), intent(in) :: x_max
real(kind=wp), intent(in) :: y_min
real(kind=wp), intent(in) :: y_max
character(len=:), intent(in), optional, allocatable :: title
character(len=:), intent(in), optional, allocatable :: xlabel
character(len=:), intent(in), optional, allocatable :: ylabel
character(len=*), intent(in), optional :: x_date_format
character(len=*), intent(in), optional :: y_date_format

public subroutine raster_draw_axes_lines_and_ticks(raster, width, height, plot_area, xscale, yscale, symlog_threshold, x_min, x_max, y_min, y_max)

Arguments

Type IntentOptional Attributes Name
type(raster_image_t), intent(inout) :: raster
integer, intent(in) :: width
integer, intent(in) :: height
type(plot_area_t), intent(in) :: plot_area
character(len=*), intent(in) :: xscale
character(len=*), intent(in) :: yscale
real(kind=wp), intent(in) :: symlog_threshold
real(kind=wp), intent(in) :: x_min
real(kind=wp), intent(in) :: x_max
real(kind=wp), intent(in) :: y_min
real(kind=wp), intent(in) :: y_max

public subroutine raster_draw_axis_labels_only(raster, width, height, plot_area, xscale, yscale, symlog_threshold, x_min, x_max, y_min, y_max, title, xlabel, ylabel, custom_xticks, custom_xtick_labels, custom_yticks, custom_ytick_labels, x_date_format, y_date_format)

Arguments

Type IntentOptional Attributes Name
type(raster_image_t), intent(inout) :: raster
integer, intent(in) :: width
integer, intent(in) :: height
type(plot_area_t), intent(in) :: plot_area
character(len=*), intent(in) :: xscale
character(len=*), intent(in) :: yscale
real(kind=wp), intent(in) :: symlog_threshold
real(kind=wp), intent(in) :: x_min
real(kind=wp), intent(in) :: x_max
real(kind=wp), intent(in) :: y_min
real(kind=wp), intent(in) :: y_max
character(len=:), intent(in), optional, allocatable :: title
character(len=:), intent(in), optional, allocatable :: xlabel
character(len=:), intent(in), optional, allocatable :: ylabel
real(kind=wp), intent(in), optional :: custom_xticks(:)
character(len=*), intent(in), optional :: custom_xtick_labels(:)
real(kind=wp), intent(in), optional :: custom_yticks(:)
character(len=*), intent(in), optional :: custom_ytick_labels(:)
character(len=*), intent(in), optional :: x_date_format
character(len=*), intent(in), optional :: y_date_format