Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

can python draw markers with a 3d effect?

Can Python, either using matplotlib or seaborn, draw markers with 3D effect?

Or any other software can do this? (like ggplot in R or origin etc.)

To explain my points, the following graphs are examples: enter image description here

enter image description here

The pink/red/black dots have a 3D effect.

Thank you!

like image 863
spearous Avatar asked Sep 11 '25 15:09

spearous


1 Answers

Here is an example using ggplot2 in R.
Hope it can help you.

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

like image 141
Marco Sandri Avatar answered Sep 13 '25 04:09

Marco Sandri