Skip to content

Consider a possible "methods-based" interface. #1047

@iangow

Description

@iangow

I have heard it said that plotnine is "not Pythonic". I explore this claim here and I conclude that perhaps the claim is strongest with the need to either say from plotnine import * (or at least from plotnine import [lots of things]) or make the code ugly with import plotnine as p9 and then p9.ggplot(p9.aes()) + p9.geom() + ....

With the help of Codex, I made a feature branch that provides a more "methods-based" interface on a fork here. The code changes seem quite non-invasive.

I think the "methods-based" code looks quite Pythonic. I also made a demo site here and everything seems to "just work" so far.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions