fortplot_figure_aspect Module

Helper routines for enforcing axis aspect ratios in figures



Functions

public function contains_pie_plot(plots, plot_count) result(has_pie)

Detect whether a collection of plots contains at least one pie chart

Arguments

Type IntentOptional Attributes Name
type(plot_data_t), intent(in) :: plots(:)
integer, intent(in) :: plot_count

Return Value logical

public function only_pie_plots(plots, plot_count) result(all_pie)

Check if every plot in the collection is a pie chart

Arguments

Type IntentOptional Attributes Name
type(plot_data_t), intent(in) :: plots(:)
integer, intent(in) :: plot_count

Return Value logical


Subroutines

public subroutine enforce_pie_axis_equal(state, plot_width_px, plot_height_px)

Adjust the figure axis limits so pie charts render with equal scaling

Arguments

Type IntentOptional Attributes Name
type(figure_state_t), intent(inout) :: state
real(kind=wp), intent(in), optional :: plot_width_px
real(kind=wp), intent(in), optional :: plot_height_px