fortplot_3d_axes Module

3D axes rendering module for projecting 3D axis frames to 2D

Provides clean, efficient routines for rendering 3D coordinate frames with proper tick marks and labels aligned to visible axis segments.



Subroutines

public subroutine draw_3d_axes(ctx, x_min, x_max, y_min, y_max, z_min, z_max, fill_panes, label_gap_px)

Draw complete 3D axes frame with ticks and labels

Read more…

Arguments

Type IntentOptional Attributes Name
class(plot_context), intent(inout) :: ctx
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
real(kind=wp), intent(in) :: z_min
real(kind=wp), intent(in) :: z_max
logical, intent(in), optional :: fill_panes
real(kind=wp), intent(in), optional :: label_gap_px

public subroutine draw_3d_front_frame(ctx, x_min, x_max, y_min, y_max, z_min, z_max)

Draw the box spines that lie in front of the data. Called after the data is rendered so near spines occlude curves and surfaces, while the far spines drawn by draw_3d_axes stay behind the data.

Arguments

Type IntentOptional Attributes Name
class(plot_context), intent(inout) :: ctx
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
real(kind=wp), intent(in) :: z_min
real(kind=wp), intent(in) :: z_max