fortplot_plot_bars Module

Bar chart plotting functionality

Provides: - Vertical bar charts (bar) - Horizontal bar charts (barh) - Automatic bar width calculation - Color management for bar plots



Subroutines

public subroutine bar_impl(self, x, heights, width, label, color)

Add vertical bar plot

Arguments

Type IntentOptional Attributes Name
class(figure_t), intent(inout) :: self
real(kind=wp), intent(in) :: x(:)
real(kind=wp), intent(in) :: heights(:)
real(kind=wp), intent(in), optional :: width
character(len=*), intent(in), optional :: label
real(kind=wp), intent(in), optional :: color(3)

public subroutine barh_impl(self, y, widths, height, label, color)

Add horizontal bar plot

Arguments

Type IntentOptional Attributes Name
class(figure_t), intent(inout) :: self
real(kind=wp), intent(in) :: y(:)
real(kind=wp), intent(in) :: widths(:)
real(kind=wp), intent(in), optional :: height
character(len=*), intent(in), optional :: label
real(kind=wp), intent(in), optional :: color(3)