obspy情节流是一个具有不同颜色的情节
嗨,我是新手使用obspy。
我想将两个流绘制到一个图。
我制作了下面的代码。
st1=read('/path/1.SAC')
st1+=read('/path/2.SAC')
st1.plot()
我成功地绘制了两个图,但是我想做的就是将它们绘制为两种颜色。
当我放置“颜色”选项时,两种颜色都会更改。
我如何设置颜色?
Hi I am new to use obspy.
I want to plot two streams to one plot.
I made code as below.
st1=read('/path/1.SAC')
st1+=read('/path/2.SAC')
st1.plot()
I succeed to plot two plots but what I want to do is plotting them as two colors.
When I put the option of 'color', then both colors are changed.
How can I set colors seperately?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
当前,不可能更改单个波形的颜色,并且更改
颜色
将会更改所有 toveforms。我建议您使用matplotlib从obspy流制作自己的图表:Currently it is not possible to change the color of individual waveforms, and changing
color
will change all waveforms as you mentioned. I suggest you make your own graph from the ObsPy Stream using Matplotlib: