WIP: Prototype example of a cartobox...#1248
Closed
pelson wants to merge 1 commit into
Closed
Conversation
stickler-ci
reviewed
Dec 26, 2018
| import cartopy.crs as ccrs | ||
| from cartopy.examples.logo import add_cartopy_logo | ||
| import matplotlib.pyplot as plt | ||
| import matplotlib.patches |
There was a problem hiding this comment.
F401 'matplotlib.patches' imported but unused
|
|
||
| def rect_healpix_tabs(ax): | ||
| tab_width = 2e6 | ||
| tab_step = 2e6 |
There was a problem hiding this comment.
F841 local variable 'tab_step' is assigned to but never used
|
|
||
| paths = [ | ||
| # Side. | ||
| mpath.Path([[2e7, 5e6], [2e7 + tab_width, 3e6], [2.2e7, -3e6], [2e7, -5e6]]), |
There was a problem hiding this comment.
E501 line too long (86 > 79 characters)
| edgecolor='black', transform=ax.transData, clip_on=False, zorder=-1) | ||
| ax.add_collection(healpix_tabs) | ||
|
|
||
| def main(): |
There was a problem hiding this comment.
E302 expected 2 blank lines, found 1
|
|
||
| def main(): | ||
| fig = plt.figure(figsize=[12, 6]) | ||
| ax = fig.add_subplot(1, 1, 1, projection=ccrs.RectangularHealpix(central_longitude=0, north_square=1, south_square=2)) |
There was a problem hiding this comment.
E501 line too long (122 > 79 characters)
Contributor
|
I'm not sure what this is demonstrating, so closing for now. Feel free to reopen if this is still desired. |
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Rationale
Adds a new example of next year's hottest Christmas toy... the cartobox. 🎄 ☃️
Requires:
Implications
More clutter on everybody's desk.