用3个y轴在一个绘图中绘制4条曲线 [英] Plotting 4 curves in a single plot, with 3 y-axes

查看:56
本文介绍了用3个y轴在一个绘图中绘制4条曲线的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有4组值:y1y2y3y4和一组x. y值的范围不同,我需要将它们绘制为单独的曲线,并在y轴上使用不同的值集.

I have 4 sets of values: y1, y2, y3, y4 and one set x. The y values are of different ranges, and I need to plot them as separate curves with separate sets of values on the y-axis.

简单起见,我需要3个y轴,它们的值(比例尺)不同,以便在同一张图上进行绘制.

To put it simple, I need 3 y-axes with different values (scales) for plotting on the same figure.

任何帮助表示赞赏,或关于寻找位置的提示.

Any help appreciated, or tips on where to look.

推荐答案

这是向您介绍本周文件交换精选!)它启发了后来,可能是更好的mods .这是一些示例输出:

This is a great chance to introduce you to the File Exchange. Though the organization of late has suffered from some very unfortunately interface design choices, it is still a great resource for pre-packaged solutions to common problems. Though many here have given you the gory details of how to achieve this (@prm!), I had a similar need a few years ago and found that addaxis worked very well. (It was a File Exchange pick of the week at one point!) It has inspired later, probably better mods. Here is some example output:

addaxis示例http://www.mathworks.com/matlabcentral/fx_files/9016/1/addaxis_screenshot.jpg

我刚刚在文件交换中搜索了忠诚".

尽管了解正在发生的事情很重要,但有时您只需要把事情做好,而不是自己去做. Matlab Central对此非常有用.

Though understanding what's going on in important, sometimes you just need to get things done, not do them yourself. Matlab Central is great for that.

这篇关于用3个y轴在一个绘图中绘制4条曲线的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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