PDF from MATLAB imagesc not imported correctly when using internal import
I'm using Inkscape to edit figures (mostly from MATLAB) for scientific manuscripts. Since MATLAB .pdf export seems generally more advanced than .eps or .svg (e.g. smaller file sizes), I would like to stick with this format, but stumbled on this problem when exporting figures created using imagesc
. I would appreciate any help, please let me know if you need further information.
Steps to reproduce:
- Create figure with
imagesc
in MATLAB - Print as PDF
- Open in Inkscape using internal import
What happened?
- Color tiles are not imported/rendered in Inkscape
Troubleshooting attempts
- Create Figure with
pcolor
instead -> rendered correctly - Import in Inkscape using Poppler/Cairo -> rendered correctly, but text is vectorized, so this is not a viable option
- PDF is rendered correctly in Evince and qpdfview
Inkscape Version and Operating System:
- Inkscape Version: 0.92.4
- Operating System: Ubuntu 16.04
Matlab code MWE and example files
data=randn(10);
imagesc(data)
print('imagesc_test' , '-dpdf')
pcolor(data)
print('pcolor_test' , '-dpdf')
close
Edited by MBK