generate_tick_data Subroutine

public subroutine generate_tick_data(ctx, data_x_min, data_x_max, data_y_min, data_y_max, x_positions, y_positions, x_labels, y_labels, num_x_ticks, num_y_ticks, xscale, yscale, plot_area_left, plot_area_bottom, plot_area_width, plot_area_height)

Generate tick positions and labels for axes Refactored to be under 100 lines (QADS compliance)

Arguments

Type IntentOptional Attributes Name
type(pdf_context_core), intent(in) :: ctx
real(kind=wp), intent(in) :: data_x_min
real(kind=wp), intent(in) :: data_x_max
real(kind=wp), intent(in) :: data_y_min
real(kind=wp), intent(in) :: data_y_max
real(kind=wp), intent(out), allocatable :: x_positions(:)
real(kind=wp), intent(out), allocatable :: y_positions(:)
character(len=32), intent(out), allocatable :: x_labels(:)
character(len=32), intent(out), allocatable :: y_labels(:)
integer, intent(out) :: num_x_ticks
integer, intent(out) :: num_y_ticks
character(len=*), intent(in), optional :: xscale
character(len=*), intent(in), optional :: yscale
real(kind=wp), intent(in) :: plot_area_left
real(kind=wp), intent(in) :: plot_area_bottom
real(kind=wp), intent(in) :: plot_area_width
real(kind=wp), intent(in) :: plot_area_height