core_colorbar Subroutine

public subroutine core_colorbar(state, plots, plot_count, plot_index, label, location, fraction, pad, shrink, ticks, ticklabels, label_fontsize)

Enable a stateful colorbar for the current figure.

This mirrors matplotlib's pyplot behavior: the colorbar is configured independently from plot creation and is rendered during save/show.

Arguments

Type IntentOptional Attributes Name
type(figure_state_t), intent(inout) :: state
type(plot_data_t), intent(in) :: plots(:)
integer, intent(in) :: plot_count
integer, intent(in), optional :: plot_index
character(len=*), intent(in), optional :: label
character(len=*), intent(in), optional :: location
real(kind=wp), intent(in), optional :: fraction
real(kind=wp), intent(in), optional :: pad
real(kind=wp), intent(in), optional :: shrink
real(kind=wp), intent(in), optional :: ticks(:)
character(len=*), intent(in), optional :: ticklabels(:)
real(kind=wp), intent(in), optional :: label_fontsize