PDF axis drawing module
Handles plot frame, tick marks, minor ticks, and tick label rendering. Depends on fortplot_pdf_axes_tick_data for tick data generation.
Draw the plot frame using actual plot area coordinates (FIXED version)
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| type(pdf_context_core), | intent(inout) | :: | ctx | |||
| real(kind=wp), | intent(in) | :: | plot_left | |||
| real(kind=wp), | intent(in) | :: | plot_bottom | |||
| real(kind=wp), | intent(in) | :: | plot_width | |||
| real(kind=wp), | intent(in) | :: | plot_height |
Draw tick marks using actual plot area coordinates (FIXED version)
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| type(pdf_context_core), | intent(inout) | :: | ctx | |||
| real(kind=wp), | intent(in), | contiguous | :: | x_positions(:) | ||
| real(kind=wp), | intent(in), | contiguous | :: | y_positions(:) | ||
| integer, | intent(in) | :: | num_x | |||
| integer, | intent(in) | :: | num_y | |||
| real(kind=wp), | intent(in) | :: | plot_left | |||
| real(kind=wp), | intent(in) | :: | plot_bottom |
Draw tick labels using actual plot area coordinates (FIXED version)
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| type(pdf_context_core), | intent(inout) | :: | ctx | |||
| real(kind=wp), | intent(in), | contiguous | :: | x_positions(:) | ||
| real(kind=wp), | intent(in), | contiguous | :: | y_positions(:) | ||
| character(len=*), | intent(in) | :: | x_labels(:) | |||
| character(len=*), | intent(in) | :: | y_labels(:) | |||
| integer, | intent(in) | :: | num_x | |||
| integer, | intent(in) | :: | num_y | |||
| real(kind=wp), | intent(in) | :: | plot_left | |||
| real(kind=wp), | intent(in) | :: | plot_bottom | |||
| real(kind=wp), | intent(in) | :: | plot_height | |||
| real(kind=wp), | intent(out), | optional | :: | max_y_tick_label_width |
Draw minor tick marks (shorter than major ticks)
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| type(pdf_context_core), | intent(inout) | :: | ctx | |||
| real(kind=wp), | intent(in), | contiguous | :: | x_minor_positions(:) | ||
| real(kind=wp), | intent(in), | contiguous | :: | y_minor_positions(:) | ||
| integer, | intent(in) | :: | num_x_minor | |||
| integer, | intent(in) | :: | num_y_minor | |||
| real(kind=wp), | intent(in) | :: | plot_left | |||
| real(kind=wp), | intent(in) | :: | plot_bottom |