Skip to content

Commit

Permalink
Bump version (setup, conf, whatsnew) to v0.2.0.
Browse files Browse the repository at this point in the history
  • Loading branch information
juseg committed Nov 1, 2022
1 parent 7b86506 commit de40ed8
Show file tree
Hide file tree
Showing 4 changed files with 47 additions and 6 deletions.
4 changes: 2 additions & 2 deletions doc/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@
project = 'hyoga'
copyright = '2021-2022'
author = 'Julien Seguinot'
version = '0.1 Akaishi'
release = '0.1.2'
version = '0.2 Bale'
release = '0.2.0'


# -- General configuration ---------------------------------------------------
Expand Down
14 changes: 12 additions & 2 deletions doc/whatsnew.rst
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,18 @@ What's new

.. _v0.2.0:

v0.2.0 (unreleased)
-------------------
v0.2.0 Bale (1 Nov. 2022)
-------------------------

.. plot:: ../examples/whatsnew/plot_v002_bale.py
:include-source: false

This is a major relase implementing several cartographic features. It adds
custom colormaps and plot methods for :doc:`shaded reliefs</datasets/shading>`,
and an interface to :doc:`open and plot </datasets/vectors>` Natural Earth data
and paleoglacier extents. The documentation uses a new theme. A logo and new
:doc:`examples <examples/index>` were added. The package structure has been
reworked to better serve :doc:`future plans <roadmap>`.

Breaking changes
~~~~~~~~~~~~~~~~
Expand Down
31 changes: 31 additions & 0 deletions examples/whatsnew/plot_v002_bale.py
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()
4 changes: 2 additions & 2 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,14 @@
[metadata]

name = hyoga
version = 0.1.2
version = 0.2.0
author = Julien Seguinot
description = A Python library to visualize ice-sheet model datasets
long_description = file: README.rst
long_description_content_type = text/x-rst
url = https://github.com/juseg/hyoga
classifiers =
Development Status :: 1 - Planning
Development Status :: 2 - Pre-Alpha
Intended Audience :: Science/Research
License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)
Programming Language :: Python :: 3
Expand Down

0 comments on commit de40ed8

Please sign in to comment.