create_histogram_line_data Subroutine

public subroutine create_histogram_line_data(bin_edges, bin_counts, x_data, y_data, horizontal)

Create line data for histogram visualization as connected rectangles.

When horizontal=.true., x and y are swapped so bars extend along the x-axis instead of the y-axis.

Arguments

Type IntentOptional Attributes Name
real(kind=wp), intent(in), contiguous :: bin_edges(:)
real(kind=wp), intent(in), contiguous :: bin_counts(:)
real(kind=wp), intent(out), allocatable :: x_data(:)
real(kind=wp), intent(out), allocatable :: y_data(:)
logical, intent(in), optional :: horizontal