我是靠谱客的博主 贪玩蜡烛,最近开发中收集的这篇文章主要介绍matlab 多子图,MATLAB-如何一起放大子图?,觉得挺不错的,现在分享给大家,希望可以做个参考。

概述

I have multiple subplots in one figure. The X axis of each plot is the same variable (time). The Y axis on each plot is different (both in what it represents and the magnitude of the data).

I would like a way to zoom in on the time scale on all plots simultaneously. Ideally by using the rectangle zoom tool on one of the plots, and having the other plots change their X limits accordingly. The Y limits should remained unchanged for all of this. Auto fitting the data to fill the plot in the Y direction is acceptable.

(This question is almost identical to Stack Overflow question one MATLAB))

解决方案

Use the built-in linkaxes function as follows:

linkaxes([hAxes1,hAxes2,hAxes3], 'x');

For more advanced linking (not just the x or y axes), use the built-in linkprop function

最后

以上就是贪玩蜡烛为你收集整理的matlab 多子图,MATLAB-如何一起放大子图?的全部内容,希望文章能够帮你解决matlab 多子图,MATLAB-如何一起放大子图?所遇到的程序开发问题。

如果觉得靠谱客网站的内容还不错,欢迎将靠谱客网站推荐给程序员好友。

本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
点赞(36)

评论列表共有 0 条评论

立即
投稿
返回
顶部