Draw the ticks as an image (OpenFrames' setTickImage; found with find_data_file; '' for disks again). False if it cannot be read.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(CoordinateAxes), | intent(inout) | :: | self | |||
| character(len=*), | intent(in) | :: | file |
image file ('' for disks) |
logical function set_tick_image(self, file) result(ok) class(CoordinateAxes), intent(inout) :: self character(len=*), intent(in) :: file !! image file ('' for disks) character(len=:), allocatable :: path type(c_ptr) :: image ok = .true. image = c_null_ptr if (len_trim(file) > 0) then path = find_data_file(file) if (len(path) > 0) image = vkf_image_read(path, len(path, kind=c_int)) ok = c_associated(image) if (.not. ok) return end if if (c_associated(self%image)) call vkf_image_delete(self%image) self%image = image self%image_file = trim(file) self%shape_ = merge(MARKER_IMAGE, MARKER_DISK, c_associated(image)) call make_axes(self) end function set_tick_image