Skip to content

Error occurs when not supplying data #404

Closed
@BruceChen2017

Description

@BruceChen2017
(ggplot() + 
        geom_bar(aes(np.array([1,1,2]))))

will cause error

D:\Python36\lib\site-packages\plotnine\layer.py in generate_data(self, plot_data)
    240             try:
--> 241                 self.data = plot_data.copy()
    242             except AttributeError:

AttributeError: 'NoneType' object has no attribute 'copy'  

But it works under r with

ggplot() + 
        geom_bar(aes(c(1,1,2)))

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions