绘制散点图中点的方向

发布于 2025-01-20 00:05:07 字数 172 浏览 2 评论 0原文

我有 [x,y] 中点的散点图。我还想绘制它们的方向:每个点代表一个非球形粒子,并且我的方向以度(-180,180)为单位,这样,对于每个数据点,我有以下向量= [x,y,orientation]。

有没有办法使用 matplotlib 在 2D 图中绘制一个小向量,或者更好的是,用空间中该方向的一条小线替换品脱?

I have a scatter plot of points in [x,y]. I would like to plot also their orientation: each point represent a non spherical particle and I have its orientation in degree (-180,180) such that, for each data point, I have the following vector= [x,y,orientation].

Is there a way with matplotlib to plot in a 2D plot a small vector or, better, replace the pint with a small line with that orientation in space?

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

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

发布评论

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