Stateful colorbar rendering (matplotlib-style).
Implements:
- Plot-area splitting for right/left/top/bottom colorbar placement
- Scalar-mappable detection (pcolormesh/scatter/filled contour)
- Gradient rendering + ticks/labels using existing primitives
Subroutines
Arguments
| Type |
Intent | Optional | Attributes |
|
Name |
|
|
class(plot_context),
|
intent(inout) |
|
|
:: |
backend |
|
|
character(len=*),
|
intent(in) |
|
|
:: |
location |
|
|
real(kind=wp),
|
intent(in) |
|
|
:: |
fraction |
|
|
real(kind=wp),
|
intent(in) |
|
|
:: |
pad |
|
|
real(kind=wp),
|
intent(in) |
|
|
:: |
shrink |
|
|
type(plot_area_t),
|
intent(out) |
|
|
:: |
saved_area |
|
|
type(plot_area_t),
|
intent(out) |
|
|
:: |
main_area |
|
|
type(plot_area_t),
|
intent(out) |
|
|
:: |
colorbar_area |
|
|
logical,
|
intent(out) |
|
|
:: |
supported |
|
Arguments
| Type |
Intent | Optional | Attributes |
|
Name |
|
|
type(plot_data_t),
|
intent(in) |
|
|
:: |
plots(:) |
|
|
integer,
|
intent(in) |
|
|
:: |
plot_count |
|
|
integer,
|
intent(in) |
|
|
:: |
preferred_index |
|
|
integer,
|
intent(out) |
|
|
:: |
plot_index |
|
|
real(kind=wp),
|
intent(out) |
|
|
:: |
vmin |
|
|
real(kind=wp),
|
intent(out) |
|
|
:: |
vmax |
|
|
character(len=20),
|
intent(out) |
|
|
:: |
colormap |
|
|
logical,
|
intent(out) |
|
|
:: |
ok |
|
Arguments
| Type |
Intent | Optional | Attributes |
|
Name |
|
|
class(plot_context),
|
intent(inout) |
|
|
:: |
backend |
|
|
type(plot_area_t),
|
intent(in) |
|
|
:: |
plot_area |
|
|
real(kind=wp),
|
intent(in) |
|
|
:: |
vmin |
|
|
real(kind=wp),
|
intent(in) |
|
|
:: |
vmax |
|
|
character(len=*),
|
intent(in) |
|
|
:: |
colormap |
|
|
character(len=*),
|
intent(in) |
|
|
:: |
location |
|
|
character(len=*),
|
intent(in), |
optional |
|
:: |
label |
|
|
real(kind=wp),
|
intent(in), |
optional |
|
:: |
custom_ticks(:) |
|
|
character(len=*),
|
intent(in), |
optional |
|
:: |
custom_ticklabels(:) |
|
|
real(kind=wp),
|
intent(in), |
optional |
|
:: |
label_fontsize |
|