kipp_list_cmaps Subroutine

public subroutine kipp_list_cmaps()

Print numbered colormaps, marking current one.

Arguments

None

Source Code

   subroutine kipp_list_cmaps()
      !! Print numbered colormaps, marking current one.
      integer(int32) :: k, n
      n = len_trim(st%cmap) - merge(2, 0, is_reversed(st%cmap))
      print '(a)', 'colormaps (cmap <name|number>, append _r to reverse):'
      do k = 1, NCMAPS
         print '(i4,2x,a,a)', k, CMAP_NAMES(k), &
            merge(' (current)', '          ', CMAP_NAMES(k) == st%cmap(1:n))
      end do
   end subroutine kipp_list_cmaps