preserving RGB color quality from heatmap figures during exporting

조회 수: 6 (최근 30일)
hxen
hxen 2021년 6월 22일
답변: hxen 2021년 6월 28일
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
Image Analyst
Image Analyst 2021년 6월 23일
Can you post a screenshot of the image side by side in MATLAB and Adobe Illustrator?
hxen
hxen 2021년 6월 24일
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

댓글을 달려면 로그인하십시오.

채택된 답변

Image Analyst
Image Analyst 2021년 6월 23일
Did you try exportgraphics()
  댓글 수: 2
hxen
hxen 2021년 6월 23일
Thank you for the suggestion! Will give it a try. :)
hxen
hxen 2021년 6월 23일
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.

댓글을 달려면 로그인하십시오.

추가 답변 (1개)

hxen
hxen 2021년 6월 28일
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.

카테고리

Help CenterFile Exchange에서 Data Distribution Plots에 대해 자세히 알아보기

제품


릴리스

R2020b

Community Treasure Hunt

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

Start Hunting!

Translated by