Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Add a ax.voxels(bool3d) function #6404

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

Merged
merged 20 commits into from
Aug 10, 2017
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Be explicit about slicing
  • Loading branch information
eric-wieser committed Jul 13, 2017
commit 46905769b78e9859a9f85c184e1b0772c6883406
2 changes: 1 addition & 1 deletion lib/mpl_toolkits/mplot3d/axes3d.py
Original file line number Diff line number Diff line change
Expand Up @@ -2831,7 +2831,7 @@ def permutation_matrices(n):
boundary_found(p0 + square_rot, color[i0])

# draw middle faces
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

could you add a bit more comments here explaining what the extra logic here is for?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Which extra logic are you referring to? The goal here is to not double-draw a face, which would cause clipping issues

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

exactly that. "don't double-draw a face" is a nice, clear explanation.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Comment added at the start of this loop

for r1, r2 in zip(rinds, rinds[1:]):
for r1, r2 in zip(rinds[:-1], rinds[1:]):
p1 = permute.dot([p, q, r1])
p2 = permute.dot([p, q, r2])

Expand Down