preserving RGB color quality from heatmap figures during exporting

5 ビュー (過去 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 Center および File ExchangeData Distribution Plots についてさらに検索

製品


リリース

R2020b

Community Treasure Hunt

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

Start Hunting!

Translated by