The label text of axis X_AXIS, Y_AXIS or Z_AXIS.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(ReferenceFrame), | intent(in) | :: | self | |||
| integer, | intent(in) | :: | axis |
X_AXIS, Y_AXIS or Z_AXIS (else: '') |
function axis_label(self, axis) result(text) class(ReferenceFrame), intent(in) :: self integer, intent(in) :: axis !! X_AXIS, Y_AXIS or Z_AXIS (else: '') character(len=:), allocatable :: text select case (axis) case (X_AXIS) text = 'X' if (allocated(self%x_label_)) text = self%x_label_ case (Y_AXIS) text = 'Y' if (allocated(self%y_label_)) text = self%y_label_ case (Z_AXIS) text = 'Z' if (allocated(self%z_label_)) text = self%z_label_ case default text = '' end select end function axis_label