next_patch_color Function

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

Next colour from the patch cycle (scatter/fill/bar/histogram). matplotlib cycles patches independently of lines, so the first scatter or filled area is tab:blue even when a line was drawn before it, and a following line plot still starts at tab:blue. Counts existing patch artists rather than the global plot index.

Arguments

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

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