使用哪种多轴、多比例绘图工具?
我正在寻找能够使用多个不同比例的垂直轴的绘图工具,例如:
(来源:mathworks.com)
目标是在同一个图中绘制具有不同范围的多个时间序列。例如,我可以:
- 时间序列 1,范围 [-1, 1]
- 时间序列 2,范围 [-10, +10]
- 时间序列 3,范围 [0, 1500]
- 时间序列 4,范围 [0.5, 0.9]
理想情况下,我可以在自己的轴上以自己的范围绘制每个时间序列,如图所示。
您知道哪些工具或库可以做到这一点?
注意:这个问题与这个相关< /a>,但我正在寻找比 Matlab 更多的可能性。
I am looking for plotting tools capable of using more than one or two vertical axes with different scales, like for instance:
(source: mathworks.com)
The goal is to plot several time series with different ranges in a same plot. For instance, I could have:
- Time series 1 with range [-1, 1]
- Time series 2 with range [-10, +10]
- Time series 3 with range [0, 1500]
- Time series 4 with range [0.5, 0.9]
Ideally I could plot each time series in its own axis with its own range, as shown in the image.
Which tools or libraries do you know that can do this?
Note: this question is related to this one, but I'm looking for more possibilities than Matlab.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(7)
Chaco 可以做到这一点。请参阅以下示例:
堆积轴图:来源 < a href="http://www.enthought.com/~pwang/chaco/stacked_axes.png" rel="noreferrer">堆叠轴图的屏幕截图 http://www.enthought.com/~pwang/chaco/stacked_axes .png
多 Y 绘图(在绘图框架上放置多个轴):来源 多个 y 轴图 http 的屏幕截图://www.enthought.com/~pwang/chaco/multi-y.png
Chaco can do this. See the following examples:
Stacked Axis plot: Source Screenshot of stacked axis plot http://www.enthought.com/~pwang/chaco/stacked_axes.png
Multi-Y plot (placing multiple axes on a plot's frame): Source Screenshot of multiple y-axis plot http://www.enthought.com/~pwang/chaco/multi-y.png
您可以在 R 中执行此操作。有关示例,请参阅此 R-wiki 页面。
使用
doubleYScale
函数也可以非常简单,如 在这些示例中。You can do this in R. See this R-wiki page for an example.
This can also be very easy using the
doubleYScale
function, as in these examples.根据 GNU 图,每个 GNU 图上最多可以有 最多 2 个 axii图表。
According to the GNU plot, you can have upto 2 axii on GNU plot per chart.
很确定你可以在 matplotlib 中执行此操作,但
维基百科页面上有很多链接失败对于其他绘图库。
Pretty sure you could do this in matplotlib
Failing that there are a lot of links on that wikipedia page for other plotting libraries.
matlab
可以做到这一点matlab
can do this不确定这是否是您想要的,但 ZedGraph 支持多个轴。它是一个 .net 组件,因此您必须编写一些代码来获取其中的数据,但它非常易于使用。
not sure if this what you want, but ZedGraph supports multiple axes. it's a .net component, so you'd have to write some code to get the data in there, but it's very easy to use.
MathGL 可以使用多个轴进行绘图(请参阅此示例)。它是 GPL(核心为 LGPL)库。
MathGL can plot with multiple axis (see this sample). It is GPL (LGPL for core) library.