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

Axes3D with PolyCollection broken #186

Closed
ddale opened this issue Jun 20, 2011 · 2 comments
Closed

Axes3D with PolyCollection broken #186

ddale opened this issue Jun 20, 2011 · 2 comments

Comments

@ddale
Copy link
Contributor

ddale commented Jun 20, 2011

Original report at SourceForge, opened Wed Jan 12 16:21:04 2011

There seems to be a regression within mpl_toolkits.mplot3d.Axes3D: it works flawless to plot a set of polygons in 2D but stacking these in 3D fails for two reasons:

  • the polygons are created wrongfully, with an extra line from the last vertice back to the origin,
  • the stacking is wrong.

See attached file for demonstration.

SourceForge History

  • On Wed Jan 12 16:21:04 2011, by danielmader: File Added: 398526: mpl3D.py
@ghost ghost assigned WeatherGod Jun 21, 2011
@WeatherGod
Copy link
Member

There are multiple problems here at play. Further investigation reveals that the problem is with converting the Path data into 3D path data. The code is not properly skipping certain points and are linking them all together as one. This results in the bad patches when multiple patches are displayed. I suspect this also screws up the calculation of the zpos (which would mess up the stacking), but I have not confirmed that.

This problem will be difficult to solve as there is no proper Path3D class that can easily be subclassed from the Path class.

@WeatherGod
Copy link
Member

This should have been fixed when #4784 was fixed a while ago. Since we lost the original script, I can't confirm this one way or another, but I believe we are now always respecting the Path codes.

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

No branches or pull requests

3 participants