旋转剧情? [英] Rotating a plot?

查看:113
本文介绍了旋转剧情?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经在Matlab中获得了正弦曲线的x-y图,我希望将该图逆时针旋转90度.我该怎么办?

I have obtained an x-y plot in Matlab of the sine curve and I wish to rotate this plot by 90 degrees counter clockwise. How do I do this?

推荐答案

在绘制的图中,单击视图"->相机工具栏".使用滚动照相机"图标,该图标应允许您旋转绘图.

In the figure you have plotted, click 'View'->'Camera Toolbar'. Use the Roll Camera icon, and that should allow you to rotate your plot.

您还可以使用camroll功能以编程方式执行此操作

You can also use the camroll function to do this programatically

camroll(90)

请注意,这实际上是使摄像机沿顺时针方向旋转,而不是情节本身.因此,如果您想将绘图逆时针旋转90度,则需要将相机顺时针旋转90度.

Note, this actually rotates the camera looking at the plot clockwise, not the plot itself. So if you want to rotate the plot 90 degrees counter-clockwise, you will need to rotate the camera 90 degrees clockwise.

这篇关于旋转剧情?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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