yhat / ggpy

ggplot port for python
http://yhat.github.io/ggpy/
BSD 2-Clause "Simplified" License
3.7k stars 572 forks source link

plot multiple geoms on top of each other #678

Open morzen opened 1 year ago

morzen commented 1 year ago

Hello,

Apologies for the issue, but I am running out of options here. I have been looking all over the web for a way to do this.

Screenshot 2023-03-29 at 21 13 51

By this, I mean being able to have multiple geom on top of each other, like it can be done in R.

the results I get in R look like this

Screenshot 2023-03-29 at 21 15 45

which is expected the data plotted in black and the data plotted in red.

When I try to do something similar in python3 it looks like this.

Screenshot 2023-03-29 at 21 17 58

only the red dot shows not the black one (in short only the last part of the code is being taken into account by the code) .

TimeGraph = ggplot(GroupsDateDictDF) + aes(x=GroupsDateDictDF["Name"], y=GroupsDateDictDF["Created"]) + geom_point(colour='black') + aes(x=GroupsDateDictDF["Name"], y=GroupsDateDictDF["Last Modified"]) + geom_point(colour='red')

here is my code.

kind regards,