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
3dquiver rebranch #3149
Merged
Merged
3dquiver rebranch #3149
Changes from all commits
Commits
Show all changes
12 commits
Select commit
Hold shift + click to select a range
cccfaa3
implement quiver 3d
weichensw 2db1118
pep8 spacing
weichensw ea6cb68
Revert "pep8 spacing"
weichensw fb51972
pep8 spacing and imports
weichensw f4cca16
adjustments according to code-review
weichensw a9e377c
docs
weichensw 70aedc0
Handles some corner cases in vector math
sneaky666 19e9240
bug fix and whats_new
weichensw addbfe5
Merge remote-tracking branch 'origin/fix-1026' into fix-1026
weichensw 1ee5161
Updated algorithm
sneaky666 1229099
Merge branch 'fix-1026' of git://github.com/xbtsw/matplotlib into 3dq…
WeatherGod 3112e67
Address remaining quiver3d issues. Fix tests.
WeatherGod File filter
Filter by extension
Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
from mpl_toolkits.mplot3d import axes3d | ||
import matplotlib.pyplot as plt | ||
import numpy as np | ||
|
||
fig = plt.figure() | ||
ax = fig.gca(projection='3d') | ||
|
||
x, y, z = np.meshgrid(np.arange(-0.8, 1, 0.2), | ||
np.arange(-0.8, 1, 0.2), | ||
np.arange(-0.8, 1, 0.8)) | ||
|
||
u = np.sin(np.pi * x) * np.cos(np.pi * y) * np.cos(np.pi * z) | ||
v = -np.cos(np.pi * x) * np.sin(np.pi * y) * np.cos(np.pi * z) | ||
w = (np.sqrt(2.0 / 3.0) * np.cos(np.pi * x) * np.cos(np.pi * y) * | ||
np.sin(np.pi * z)) | ||
|
||
ax.quiver(x, y, z, u, v, w, length=0.1) | ||
|
||
plt.show() | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this should have the
mplot3d
subfolder in the path.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed
On Fri, Jun 27, 2014 at 2:35 PM, Thomas Kluyver notifications@github.com
wrote:
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry, where did the fix go? I can't see a commit or a PR for it.
I've also recorded the problem this causes as issue #3161.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ah, I missed that this PR was merged already. I had just simply updated my branch. I'll fix that.