GenericMappingTools / GenericMappingTools/gmt
grdview has troubles with images not inRGB
- Dominant language
- C
- Stars
- 979
- Forks
- 414
- Avg merge
- 17h 26m
- Merged PRs (30d)
- 54
Description
The Image **I** has an internal colormap but I need to convert it to RGB so that ``grdview`` is happy with it.
```
julia> imshow(z, drape=ind2rgb(I), p=(135,30), name="ok.png")
julia> imshow(z, drape=I, p=(135,30), name="bad1.png")
# This removes the colormap from I before sending it to grdview
julia> imshow(z, drape=image_cpt!(I,clear=true), p=(135,30), name="bad2.png")
# And this shows that grdimage is happy to plot an image without a colormap.
imshow(I, name="ok2.png")
```




Contributor guide
Assessment
This issue has not been assessed yet.