FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Question: matplotlib.pyplot max number of x,y of the `plot()` method · Issue #11244 · matplotlib/matplotlib · GitHub

Repository navigation

Question: matplotlib.pyplot max number of x,y of the plot() method #11244

Closed

Description

For latest matplotlib.pyplot as today:

Are there some maximum number of items allowed in the Python lists for x and y of the plot() method?

A 100 000 seem to hang on my computer.

Example:

.
.
plt.plot(x, y)
plt.show()
.
.

Activity

  1. jklymak commented on May 14, 2018

    Member

    Hmmm, I have this problem too. A more complete example and error are useful:

    import matplotlib.pyplot as plt
    import numpy as np
    
    x = np.random.rand(100000)
    y = np.random.rand(100000)
    fig, ax = plt.subplots()
    ax.plot(x, y)
    plt.show()
    OverflowError: Exceeded cell block limit (set 'agg.path.chunksize' rcparam)
    

    So, you can set the chunk size...

    import matplotlib as mpl
    import matplotlib.pyplot as plt
    import numpy as np
    
    print(mpl.rcParams['agg.path.chunksize'])
    mpl.rcParams['agg.path.chunksize'] = 10000
    x = np.random.rand(100000)
    y = np.random.rand(100000)
    
    fig, ax = plt.subplots()
    ax.plot(x, y)
    
    plt.show()
  2. jklymak commented on May 14, 2018

    Member
  3. jklymak commented on May 14, 2018

    Member

    I'm going to close as I don't think this is a bug per-se but a limitation of the backend for which there is a workaround. If you can't use the workaround, please feel free to re-open...

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions


      Back | FazBrowse Home | New Git URL