Tick labels, axis titles and colorbars.
Called from draw_scene (draw.f90); holds no state.
| Type | Visibility | Attributes | Name | Initial | |||
|---|---|---|---|---|---|---|---|
| real(kind=real64), | private, | parameter | :: | CB_TICK | = | 0.8d0 |
Colorbar tick label height, as a multiple of |
| real(kind=real64), | private, | parameter | :: | CB_TITLE | = | 3.5d0 |
Colorbar title offset from the strip, in tick label heights. |
Round x to a nice tick step.
Smallest of 2, 5 or 10 times a power of ten not below |x|, w/ sign of x. Binds giza's C
giza_round directly.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| real(kind=c_double), | value | :: | x |
Value to round. |
||
| integer(kind=c_int), | intent(out) | :: | nsub |
Minor tick intervals per step: 2 for a step of 2, else 5. |
Test whether colormap name ends in reversing suffix '_r'.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| character(len=*), | intent(in) | :: | name |
Colormap name. |
Choose tick step of linear x axis.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| real(kind=real64), | intent(in) | :: | wx1 |
Left window edge, in world coords. |
||
| real(kind=real64), | intent(in) | :: | wx2 |
Right window edge, in world coords. |
||
| real(kind=real64), | intent(in) | :: | wy1 |
Bottom window edge, in world coords. |
||
| real(kind=real64), | intent(in) | :: | wy2 |
Top window edge, in world coords. |
||
| real(kind=real64), | intent(in) | :: | xlim |
Right limit of x labels, as fraction of page width. |
||
| real(kind=real64), | intent(out) | :: | step |
Tick step, in world coords. |
||
| integer(kind=c_int), | intent(out) | :: | nsub |
Minor tick intervals per step. |
Write tick labels of giza_box option 'N', minus any that would clip.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| real(kind=real64), | intent(in) | :: | wx1 |
Left window edge, in world coords. |
||
| real(kind=real64), | intent(in) | :: | wx2 |
Right window edge, in world coords. |
||
| real(kind=real64), | intent(in) | :: | wy1 |
Bottom window edge, in world coords. |
||
| real(kind=real64), | intent(in) | :: | wy2 |
Top window edge, in world coords. |
||
| real(kind=real64), | intent(in) | :: | xstep |
x tick step, unused on log axis. |
||
| real(kind=real64), | intent(in) | :: | ystep |
y tick step, unused on log axis. |
||
| real(kind=real64), | intent(in) | :: | xlim |
Right limit of x labels, as fraction of page width. |
||
| logical, | intent(in) | :: | dry |
Only test x labels for crowding, writing nothing. |
||
| logical, | intent(out) | :: | crowded |
An x label was dropped for sitting too close to previous one. |
Build axis titles from axis quantities and units.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| character(len=*), | intent(out) | :: | xlabel |
x-axis title. |
||
| character(len=*), | intent(out) | :: | ylabel |
y-axis title. |
Draw energy-layer colorbar in right margin.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| integer(kind=int32), | intent(in) | :: | layer |
Energy layer, numbered as in layers.f90. |
Write horizontal label beside colorbar strip.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| real(kind=real64), | intent(in) | :: | y |
Height in strip window, 0 to 1. |
||
| character(len=*), | intent(in) | :: | txt |
Label text. |
Write text up outer side of colorbar.
| 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. |
Draw colour-field colorbar in right margin.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| integer(kind=int32), | intent(in) | :: | f |
Colour field index, as registered in convdata.f90. |
Return colour of colormap st%cmap at t.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| real(kind=real64), | intent(in) | :: | t |
Position in colormap, 0 to 1. |
||
| real(kind=real64), | intent(out) | :: | r |
Red component, 0 to 1. |
||
| real(kind=real64), | intent(out) | :: | g |
Green component, 0 to 1. |
||
| real(kind=real64), | intent(out) | :: | b |
Blue component, 0 to 1. |