gpt4 book ai didi

python - python可以绘制具有3d效果的标记吗?

转载 作者:太空宇宙 更新时间:2023-11-03 15:52:21 24 4
gpt4 key购买 nike

无论是使用matplotlib 还是seaborn,Python 都可以绘制具有3D 效果的标记吗?

或者其他软件可以做到这一点? (如 R 中的 ggplot 或 origin 等)

为了解释我的观点,以下图表是示例: enter image description here

enter image description here

粉色/红色/黑色圆点具有 3D 效果。

谢谢!

最佳答案

这是一个在 R 中使用 ggplot2 的例子。
希望对您有所帮助。

library("ggplot2")
library("ggimage")

set.seed(1)
d <- data.frame(x = rnorm(10), y = rnorm(10),
image = rep("https://cdn.pixabay.com/photo/2015/11/26/19/19/ball-1064402_960_720.png",10))

ggplot(d, aes(x, y)) +
geom_line(lwd=3, color="#FF000044") +
geom_image(aes(image=image), size=.05) +
theme_bw()

enter image description here

关于python - python可以绘制具有3d效果的标记吗?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/45849876/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com