Warning: RGB color data not yet supported in Painter's mode

4 views (last 30 days)
Hi smart guys,
Have you got any new solutions to this 'Warning: RGB color data not yet supported in Painter's mode'?
I got some codes like:
backgroundImage = image([a b],[c d], ... imageFile, 'CDataMapping', 'scaled', 'HitTest', 'off'); colormap(gray); patchImage = patch(square(5:8,:),square(9:12,:),'r');
to plot a patch on a background image. When I try to save it to .pdf (using 'print' or 'export_fig'), it gives 'Warning: RGB color data not yet supported in Painter's mode'. Also the patch can not be displayed correctly on the background image.
Some solution using rgb2cm (from Matlab FX), but still not work well on my problem
Please tell me if you have a good idea. Thanks very much!
Aaronne.

Answers (0)

Categories

Find more on Surfaces, Volumes, and Polygons in Help Center and File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!