2014-01-30 68 views
2

我在绘制3D散点图时遇到了问题。 我不明白为什么z标签是扭曲的z标签散点图

你能帮我吗?

scatter3(x(:,1),x(:,2),x(:,3),50,index_color,'filled') 

xlabel('1$^{st}$ component','Interpreter','LaTex','FontSize',14); 
ylabel('2$^{nd}$ component','Interpreter','LaTex','FontSize',14); 
zlabel('3$^{rd}$ component','Interpreter','LaTex','FontSize',14); 

我使用Ubuntu和Matlab R2012b

enter image description here

+0

它不会在我的系统(Windows Vista 32位上的Matlab R2010Rb)上发生。 –

+0

对我来说,它发生在所有垂直标签上......(也在2D图中) – gabboshow

+0

可能是图形卡不兼容。尝试更改渲染器,例如'set(gcf,'renderer','zbuffer')' – Jonas

回答

1

我曾与LaTeX的解释(在Windows)参差不齐的运气。尝试使用TeX解释器代替:

xlabel('1^{st} component','Interpreter','tex','FontSize',14); 
ylabel('2^{nd} component','Interpreter','tex','FontSize',14); 
zlabel('3^{rd} component','Interpreter','tex','FontSize',14); 
+0

谢谢!有用! – gabboshow