fortplot_axes Module

Axes and tick generation module

This module handles axis drawing, tick computation, and label formatting for all scale types. Follows Single Responsibility Principle by focusing solely on axis-related functionality.



Variables

Type Visibility Attributes Name Initial
integer, public, parameter :: MAX_TICKS = 20

Functions

public function format_tick_label(value, scale_type) result(label)

Format a tick value as a string label

Read more…

Arguments

Type IntentOptional Attributes Name
real(kind=wp), intent(in) :: value
character(len=*), intent(in) :: scale_type

Return Value character(len=20)


Subroutines

public subroutine compute_scale_ticks(scale_type, data_min, data_max, threshold, tick_positions, num_ticks)

Compute tick positions for different scale types

Read more…

Arguments

Type IntentOptional Attributes Name
character(len=*), intent(in) :: scale_type
real(kind=wp), intent(in) :: data_min
real(kind=wp), intent(in) :: data_max
real(kind=wp), intent(in) :: threshold
real(kind=wp), intent(out) :: tick_positions(MAX_TICKS)
integer, intent(out) :: num_ticks