Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

offsets.shape(-1,2) #1473

Closed
firebirdberlin opened this issue Nov 9, 2012 · 1 comment
Closed

offsets.shape(-1,2) #1473

firebirdberlin opened this issue Nov 9, 2012 · 1 comment

Comments

@firebirdberlin
Copy link

When plotting 3d scattered points I get an exception:
[...]matplotlib/collections.py", line 224, in _prepare_points
offsets.shape = (-1, 2) # Make it Nx2
AttributeError: incompatible shape for a non-contiguous array

I commented out "offsets.shape = (1-,2)" in _prepare_points() and get_datalim() to make it work.

print(offsets.shape) gives (0,2)

@WeatherGod
Copy link
Member

This is a bug caused by a recent change in NumPy (numpy/numpy#2700) and the fix (numpy/numpy#2702) was recently merged. Please update your numpy build and uncomment that line (it is necessary in the general case).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants