Write text up outer side of colorbar.
Clears tick labels of up to about 5 characters.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| real(kind=real64), | intent(in) | :: | y |
Position along strip, as fraction of its height. |
||
| real(kind=real64), | intent(in) | :: | fjust |
Justification about |
||
| real(kind=real64), | intent(in) | :: | h |
Character height, as multiple of |
||
| character(len=*), | intent(in) | :: | txt |
Text to write. |
subroutine colorbar_title(y, fjust, h, txt) !! Write text up outer side of colorbar. !! !! Clears tick labels of up to about 5 characters. ! Arguments real(real64), intent(in) :: y !! Position along strip, as fraction of its height. real(real64), intent(in) :: fjust !! Justification about `y`: 0 starts the text there, 1 ends it there, 0.5 centres it. real(real64), intent(in) :: h !! Character height, as multiple of `chs`. character(len=*), intent(in) :: txt !! Text to write. call giza_set_colour_index(1) call giza_set_character_height(h*chs) call giza_annotate('R', real(CB_TITLE*CB_TICK/h), real(y), real(fjust), txt) call giza_set_character_height(CB_TICK*chs) end subroutine colorbar_title