用plotly.express geo_ -scatter绘制多个数据集

发布于 2025-02-05 16:06:43 字数 747 浏览 0 评论 0原文

我目前正在尝试使用STACT_GEO建模轨道卫星。我可以在地球周围的罚款时对当前的飞行路径进行建模。我的问题是,与Matplotlib不同,我似乎无法制作一个子图。我一直在浏览情节。表达文档,但我似乎找不到工作。到目前为止,我的代码是...

fig = px.scatter_geo(prop_data['2022-06-06':'2022-06-06'],
               animation_frame='hour',
               color='visible',
               lat='latitude',
               lon='longitude',
               opacity=0.3,
               hover_data=['elevation', 'azimuth'],
           projection='orthographic',)


fig.show()

这会产生情节

包括可见性的卫星图的图片 “卫星图的图片,包括可见性,包括”

如您所见,该图表示卫星何时在视野内车站,但是您无法物理看到车站在哪里。 IVE试图使用STACT_GEO文档中指定的属性“位置”,但最终覆盖了我的数据。我还尝试使用图形属性,但不幸的是,这只是matplotlib的属性。我还尝试“坚持”尝试添加另一个子图,但这也没有起作用。任何帮助将不胜感激!

I am currently trying to model an orbiting satellite using scatter_geo. I can model currently the flight path around the Earth fine. My issue is, unlike matplotlib, I cant seem to make a subplot usng the figure property. Ive been looking through the plotly.express documentation but I couldnt seem to find a work around. My code so far is...

fig = px.scatter_geo(prop_data['2022-06-06':'2022-06-06'],
               animation_frame='hour',
               color='visible',
               lat='latitude',
               lon='longitude',
               opacity=0.3,
               hover_data=['elevation', 'azimuth'],
           projection='orthographic',)


fig.show()

and this produces the plot

Picture of satellite plot with visibility included
Picture of satellite plot with visibility included

As you can see, the plot indicates when the satellite is within the field of view of the station, but you cannot physically see where the station is. Ive tried to use the property 'location' specified in the documentation of scatter_geo but it ended up overwriting my data. Ive tried also to use the figure property but unfortunately that is only a property of matplotlib. Ive also tried 'hold on' to try and add another subplot but that didnt work either. Any help would be greatly appreciated!

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

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

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文