sirrice / pygg

ggplot2 syntax in python. Actually wrapper around Wickham's ggplot2 in R
MIT License
73 stars 9 forks source link

Pass data objects into ggplot call #7

Open sirrice opened 9 years ago

sirrice commented 9 years ago

Current version of ggplot() takes a variable name as input, by default "data", and relies on ggsave()'s prefix argument to set the data object.

ggplot('data', aes(...)) + ggsave(..., prefix=data_py(dataobject))

Modify ggplot() call to accept a data object as input, and let it configure the prefix under the covers. ggsave's prefix argument option can still be used for full control

depristo commented 9 years ago

sirrice, btw, I'm going to handle all of these open issues. Just put them here for proper bookkeeping

depristo commented 9 years ago

Oops, didn't realize this was a distinct issue. Happy if you want to handle this one.

sirrice commented 9 years ago

Cool. I'll wait for your better to_r set of functions, then tackle this.