如何设置 MATLAB 中轴的实际比例?
我有 4 组 3D 散点数据,想要在 MATLAB 子图中绘制。但是,我希望每个数据集中的比例相同,以便可以在图之间粗略地直观地比较每个数据集中的大小。
使这有点困难的是每个图的限制是任意的,因此不能设置为特定值。
有没有办法显式设置 MATLAB 绘图的比例?像“将每个像素设置为 4 个单位”之类的东西会很棒。
I have 4 sets of 3D scatter data that i want to plot in MATLAB subplots. However, I would like the scale to be the same in each—so that sizes in each dataset can be roughly visually compared between plots.
What makes this slightly difficult is that the limits for each plot are arbitrary, so cannot be set to a specific value.
Is there a way to set the scale of a MATLAB plot explicitly? Something like "set each pixel to be 4 units" would be great.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
如果您只想将它们全部设置为与第一个的大小相同,只需执行以下操作:
If you just want to set them all to be the same as whatever the scale of the first one happened to be, just do this: