-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Bump version (setup, conf, whatsnew) to v0.2.0.
- Loading branch information
Showing
4 changed files
with
47 additions
and
6 deletions.
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,31 @@ | ||
#!/usr/bin/env python | ||
# Copyright (c) 2022, Julien Seguinot (juseg.github.io) | ||
# GNU General Public License v3.0+ (https://www.gnu.org/licenses/gpl-3.0.txt) | ||
|
||
""" | ||
v0.2.0 Bale | ||
=========== | ||
""" | ||
|
||
import matplotlib.pyplot as plt | ||
import contextily as cx | ||
import hyoga | ||
|
||
# plot paleoglaciers | ||
ax = hyoga.open.paleoglaciers().to_crs(epsg=3857).plot( | ||
alpha=0.75, facecolor='w', edgecolor='r', linewidth=2) | ||
|
||
# zoom on Bale Mountains (120x60 km) | ||
ax.set_xlim(4390e3, 4470e3) | ||
ax.set_ylim(730e3, 790e3) | ||
|
||
# add stamen terrain | ||
cx.add_basemap(ax, source=cx.providers.Stamen.TerrainBackground) | ||
|
||
# set axes properties | ||
ax.set_title('Bale Mountains') | ||
ax.xaxis.set_visible(False) | ||
ax.yaxis.set_visible(False) | ||
|
||
# show | ||
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