Skip to content

Error occurs when not supplying data #404

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)))

Activity

  1. added 2 commits that reference this issue on Jun 11, 2020
    f8841a5
    1134a6a
  2. added
    Addressed in Next VersionThe issue has been fixed, but it has not in the current official release.
    on Jun 14, 2020
  3. removed
    Addressed in Next VersionThe issue has been fixed, but it has not in the current official release.
    on Aug 5, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions