在Matlab中的3D图中对齐轴标签 [英] aligning the axes labels in 3d plot in matlab

查看:297
本文介绍了在Matlab中的3D图中对齐轴标签的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用以下matlab命令绘制网格数据

I plot the mesh data with the following matlab commands

[x, y] = meshgrid(-10:0.1:10, -10:0.1:10);
z = exp(-x.^2 - y.^2);
mesh(x, y, z);
xlabel('time variable');
ylabel('space variable');
zlabel('wave');

您将看到,无论如何旋转轴,x和y标签始终保持水平对齐.旋转轴时,有什么方法可以使其分别与x轴和y轴对齐?

You will see that no matter how to rotate the axes, the x and y label are always aligned horizontally. Is there any way to make it align with the x axis and y axis separately while I rotating the axes?

推荐答案

已经提交了将轴标签与图形轴对齐的提交文件

There has been a submission to align axes labels with the figure axis here.

这篇关于在Matlab中的3D图中对齐轴标签的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆