从过去的几天开始,我在保存matlab图时一直看到这个看起来很糟糕的数字。看到这个:
有人知道为什么会出现这种情况吗?
这是我正在使用的绘图代码:
sortedAssessments() {
return this.assessments.sort( (a, b) => priority.indexOf(a.id) - priority.indexOf(b.id) )
}
我猜测窗户有些问题?因为我以前经常得到好的情节。在此先感谢.. :))
编辑1:我正在创建单击导出图标的文件。 编辑2:尝试重新安装matlab,仍然得到相同的结果
编辑3:最终解决方案是有效的我将字体更改为'Times New Roman'。现在数字输出正确.. :)
答案 0 :(得分:0)
为获得最佳效果,请始终使用saveas
保存为MATLAB数字或print
保存为图像。
figHandle=figure(...);
axes(...);
plot(...);
plot(...);
saveas(figHandle,filePath1);
print(figHandle,'-dpng','-r300',filePath2);