两个左Y轴

发布于 2024-10-30 20:04:41 字数 754 浏览 4 评论 0原文

可能的重复:
在单个图中绘制 4 条曲线,其中 3 条y 轴

亲爱的 stackoverflowers,

我需要绘制 3 条具有相同 X 轴(时间)但三个不同维度(伏特、温度、电流)的曲线。对我来说,最好的前景是在左侧有两个 Y 轴,间隔几个像素,这样我们就可以读取每个 Y 轴的图例和刻度。

我的问题的答案不是 plotyy 也不是 多个 X 或 Y 轴 。在第一种情况下,它帮助我绘制两个不同的维度,而不是三个。

后者帮助我将右或左 Y 轴与特定曲线关联起来。我对第三条曲线使用了 YAxisLocation 选项,但如果我将其向右或向左放置,当然它会干扰之前存在的其他 YAxis。没有像 left - 20 Pixels 这样的选项吗?

感谢您的帮助。

Possible Duplicate:
Plotting 4 curves in a single plot, with 3 y-axes

Dear stackoverflowers,

I need to plot 3 curves with same X axis (time) but three different dimensions (Volt, temp, current). The best outlook, to me, would be to have two Y axis on the left side, separated by a few pixel so we can read legend and ticks for each.

The answer to my questions are not plotyy neither multiple X or Y axis . In the first case, it helps me plot two different dimensions, not three.

the latter helps me associate right or left Y axis to a particular curve. I used the YAxisLocation option for my third curve but if I put it right or left, of course it interfers with the other YAxis that was there before. There is no option like left - 20 pixels ?

Thank you for your help.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

少女七分熟 2024-11-06 20:04:41

您可以只使用绘图(它将处理比例),然后包含一个图例来说明您的单位是什么(例如伏特、度等)

You could just use plot (which will take care of the scale) and then include a legend to say what your units are (e.g. volts, degrees, etc)

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文