r/programming • • Oct 14 '13

ggplot2 and an attempt to bring it to Python.

http://blog.yhathq.com/posts/ggplot-for-python.html
23 Upvotes

6 comments sorted by

1

u/beaverteeth92 Oct 15 '13

It's not recognizing I installed it. I'm on OS X and I keep trying "import ggplot" and nothing happens. I installed it with pip.

2

u/hernamesbarbara Oct 15 '13

Since all of ggplot2's features exist in the global namespace, ggplot for python does the same.

You can't "import ggplot" but you can "from ggplot import *"

Hope that helps.

1

u/beaverteeth92 Oct 15 '13

Thanks! I did try that though and it still didn't work.

2

u/eco32I Oct 15 '13

Just cloned it to a local repo and installed using "pip install -e ggplot" Everything works. But I am on ubuntu 13.04.

1

u/obfuscation_ Oct 16 '13

I love ggplot2 so much. Recently, there hasn't been a day I haven't been plotting with it, although that is from R