Matrix Plot as vector graphic error
显示 更早的评论
Hi all, I want to plot a confusion matrix using imshow(), and everything works fine. However, if I want to export that figure into an eps or svg vector graphic it turns out to look some kind of interpolated

I already figured out that Matlab is somehow trying to upscale the image with interpolation and that the attribute 'ImshowInitialMagnification' for iptsetpref() should help. I tried things like
imshow(ConfusionMatrix);
iptsetpref('ImshowInitialMagnification',100);
but unfortunately that didn't help. It looks fine if I upscale the Matrix by myself
bigArray = imresize(smallArray, 3.456, 'nearest');
but that would kill my ticks as these are indeed for each pixel, so that the original array is actually a 12x12 matrix. Thanks for your help. Best wishes Elias
回答(0 个)
类别
在 帮助中心 和 File Exchange 中查找有关 Color and Styling 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!