Build axis titles from axis quantities and units.
Log axis gets a 'log' prefix.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| character(len=*), | intent(out) | :: | xlabel |
x-axis title. |
||
| character(len=*), | intent(out) | :: | ylabel |
y-axis title. |
subroutine labels(xlabel, ylabel) !! Build axis titles from axis quantities and units. !! !! Log axis gets a 'log' prefix. ! Arguments character(len=*), intent(out) :: xlabel !! x-axis title. character(len=*), intent(out) :: ylabel !! y-axis title. if (st%xaxis == 'model') then xlabel = 'model number' else xlabel = 'time ('//trim(ULABEL(unit_id(st%tunit)))//')' end if if (st%xlog) xlabel = 'log '//trim(xlabel) if (st%yaxis == 'radius') then ylabel = 'radius ('//trim(ULABEL(unit_id(st%runit)))//')' else ylabel = 'enclosed mass ('//trim(ULABEL(unit_id(st%munit)))//')' end if if (st%ylog) ylabel = 'log '//trim(ylabel) end subroutine labels