preserving RGB color quality from heatmap figures during exporting

5 visualizaciones (últimos 30 días)
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 comentarios
Image Analyst
Image Analyst el 23 de Jun. de 2021
Can you post a screenshot of the image side by side in MATLAB and Adobe Illustrator?
hxen
hxen el 24 de Jun. de 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

Iniciar sesión para comentar.

Respuesta aceptada

Image Analyst
Image Analyst el 23 de Jun. de 2021
Did you try exportgraphics()
  2 comentarios
hxen
hxen el 23 de Jun. de 2021
Thank you for the suggestion! Will give it a try. :)
hxen
hxen el 23 de Jun. de 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.

Iniciar sesión para comentar.

Más respuestas (1)

hxen
hxen el 28 de Jun. de 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.

Categorías

Más información sobre Data Distribution Plots en Help Center y File Exchange.

Productos


Versión

R2020b

Community Treasure Hunt

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

Start Hunting!

Translated by