preserving RGB color quality from heatmap figures during exporting

5 views (last 30 days)
I wish to export in RGB heatmaps that were created using imagesc and pcolor for output. The MATLAB .fig outputs look beautiful using the "jet" color map. However, regardless of the format type (.svg, .eps, .png, etc.) the colors get blunted with the blues becoming more purplish and reds and oranges shifted more to the yellow spectrum. This still occurs despite setting/using the export feature in the figure menu to output in RGB. Ultimately, I wish to import the colormaps into adobe illustrator for figure making purposes. Only when I switch to CMYK in Adobe do the colors somewhat return to how it appeared in the original MATLAB figure, but the hues are much less vibrant and dulled. I didn't have this issue previously until recently updating MATLAB and cannot find any information how to bypass this issue. I'm using MATLAB 2020b and using a Mac.
How can I preserve in any graphical export type the same RGB color quality from the original heatmap figure?
Thank you for any help or suggestions.
%Code generating figure:
T = imagesc(pts, pts, conv2(N, g, 'same'));
figure, pcolor(T.CData);
shading(gca,'interp');
colormap(jet(4096));
  8 Comments
Image Analyst
Image Analyst on 23 Jun 2021
Can you post a screenshot of the image side by side in MATLAB and Adobe Illustrator?
hxen
hxen on 24 Jun 2021
Hi. I did in the above comment. You can find the attachment here: https://www.mathworks.com/matlabcentral/answers/862750-preserving-rgb-color-quality-from-heatmap-figures-during-exporting#comment_1598595

Sign in to comment.

Accepted Answer

Image Analyst
Image Analyst on 23 Jun 2021
Did you try exportgraphics()
  2 Comments
hxen
hxen on 23 Jun 2021
Unfortunately, it did not work. The strange shift with bloue hues stil persists. I am more convinced this is a Mac OS issue with Illustrator. I can open the exported maps using FiJi. I am going to reach out to Adobe. Thank you all for your time and help.

Sign in to comment.

More Answers (1)

hxen
hxen on 28 Jun 2021
Just wanted to follow up. I learned that the issue was a Mac OS new update related problem that reset Adobe Cloud settings. This was during the last MATLAB update I had done. It seems many have this issue after updating Adobe, which is easily solved by resetting the color settings under the Edit menu. Anyone reading this have having this issue might find this helpfu for importing any plots into Adobe: https://helpx.adobe.com/acrobat/using/keeping-colors-consistent.html
Thank you all again for your time.

Categories

Find more on Data Distribution Plots in Help Center and File Exchange

Products


Release

R2020b

Community Treasure Hunt

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

Start Hunting!