next_plot_color Function

public pure function next_plot_color(state, plots) result(color)

Next colour from the line cycle (plot/axhline/axvline). matplotlib advances the line property cycle only for line artists; scatter and contour draw from the patch/colormap path and never touch it. When the plots array is supplied, count existing line artists so an intervening scatter or contour does not skip a colour. Without it, fall back to the global plot index for callers that have no array in scope.

Arguments

Type IntentOptional Attributes Name
type(figure_state_t), intent(in) :: state
type(plot_data_t), intent(in), optional :: plots(:)

Return Value real(kind=wp), (3)