【发布时间】:2015-10-17 13:10:16
【问题描述】:
我正在尝试使用 hist3 使用以下简单代码在 MATLAB 2015a 中创建二维直方图:
figure
hist3([X,Y],[100 100]);
set(get(gca,'child'),'Facecolor','interp','CDataMode','auto');
colormap('jet')
set(gca,'TickLabelInterpreter','latex')
axis 'square'
xlabel('$x$','interpreter','latex','Fontsize',12)
ylabel('$y$','interpreter','latex','Fontsize',12)
view(-37,26)
其中 X,Y 是两个带有length(X)=length(Y)=2026486 的向量。
我尝试使用
print('example','-depsc')
但生成的图像是基于像素的。我尝试更改渲染器:
print('example','-depsc','-painters')
但 MATLAB 在打印时不断崩溃,所以我必须手动重新启动计算机。 我也尝试以 pdf 格式保存,但质量没有改变。 有没有办法解决这个问题?
【问题讨论】: