-
-
Notifications
You must be signed in to change notification settings - Fork 7.9k
Cleanup and move polar scatter demo
- Loading branch information
commit e4dce4e46fe7c63b60b39b08e6d3f60b08d06f47
There are no files selected for viewing
This file contains hidden or 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,21 @@ | ||
""" | ||
Demo of scatter plot on a polar axis. | ||
|
||
Size increases radially in this example and color increases with angle (just to | ||
verify the symbols are being scattered correctly). | ||
""" | ||
import numpy as np | ||
import matplotlib.pyplot as plt | ||
|
||
|
||
N = 150 | ||
r = 2 * np.random.rand(N) | ||
theta = 2 * np.pi * np.random.rand(N) | ||
area = 200 * r**2 * np.random.rand(N) | ||
colors = theta | ||
|
||
ax = plt.subplot(111, polar=True) | ||
c = plt.scatter(theta, r, c=colors, s=area, cmap=plt.cm.hsv) | ||
c.set_alpha(0.75) | ||
|
||
plt.show() |
This file was deleted.
Oops, something went wrong.
This file contains hidden or 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 hidden or 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
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.
MEP 12: Gallery cleanup and reorganization #1623
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
Uh oh!
There was an error while loading. Please reload this page.
MEP 12: Gallery cleanup and reorganization #1623
Changes from 1 commit
31c4b57
a16e793
a22ed53
48caac8
7f1887b
b10a877
6995e54
48fab58
e9bfbb9
87aba29
c0f42d7
e244d9b
002ca7a
402b301
529d9f7
6acc43a
7f7c013
ab417eb
5a77ad8
e4dce4e
cc18501
d02d560
ec8a487
acc69cc
800deb4
edce62b
405cbc5
30a85ba
7175e06
5020952
fae23d6
abfdea4
8f4be5b
917c329
1e579d8
File filter
Filter by extension
Conversations
Uh oh!
There was an error while loading. Please reload this page.
Jump to
Uh oh!
There was an error while loading. Please reload this page.