Skip to content

Not supported in Numpy >= 2.0 #362

Description

@muhalfian

Describe the bug
I cannot run .plot() using numpy >= 2.0. If I downgrade numpy, it will change all of my codes. Please help me.

To Reproduce
Steps to reproduce the behavior:

  1. When I plot my obj
    obj.plot()

  2. Show this error
    /usr/local/lib/python3.11/dist-packages/pyntcloud/plot/matplotlib_backend.py in plot_with_matplotlib(cloud, **kwargs)
    23 colors = get_colors(cloud, kwargs["use_as_color"], kwargs["cmap"])
    24
    ---> 25
    26 ptp = np.ptp(cloud.xyz)
    27

AttributeError: ptp was removed from the ndarray class in NumPy 2.0. Use np.ptp(arr, ...) instead.

Expected behavior
I want to show my object

Screenshots
Image

Activity

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

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions