Skip to content

Commit

Permalink
Merge pull request #125 from dopplershift/station_plots
Browse files Browse the repository at this point in the history
Station Plots
  • Loading branch information
dopplershift committed Feb 8, 2016
2 parents 030e91a + b84ce6b commit 7d3bd75
Show file tree
Hide file tree
Showing 20 changed files with 3,473 additions and 29 deletions.
6 changes: 3 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -66,10 +66,10 @@ before_install:
pip install Cython;
fi;
else
export TEST_OPTS="--addopts --mpl";
export TEST_OPTS="--mpl";
pip install pytest-mpl;
if [[ $TASK == "coverage" ]]; then
export TEST_OPTS="$TEST_OPTS --addopts --cov=metpy";
export TEST_OPTS="$TEST_OPTS --cov=metpy";
pip install pytest-cov;
fi;
fi;
Expand Down Expand Up @@ -99,7 +99,7 @@ script:
echo backend:agg > matplotlibrc;
MPLBACKEND='agg' TEST_DATA_DIR=${TRAVIS_BUILD_DIR}/testdata python test_examples.py;
else
python setup.py test $TEST_OPTS;
python setup.py test --addopts "$TEST_OPTS";
fi

after_success:
Expand Down
17 changes: 12 additions & 5 deletions docs/source/api/plots.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,22 @@
:mod:`metpy.plots`
==================

Plots
*****

.. automodule:: metpy.plots

Skew-T
******

.. automodule:: metpy.plots.skewt
:members:
:undoc-members:

.. autoclass:: metpy.plots.SkewT
.. autoclass:: metpy.plots.Hodograph

Station Plots
*************

.. automodule:: metpy.plots.station_plot
:members:
:undoc-members:


Colortables
Expand Down
290 changes: 290 additions & 0 deletions examples/notebooks/Station_Plot.ipynb

Large diffs are not rendered by default.

415 changes: 415 additions & 0 deletions examples/notebooks/Station_Plot_with_Layout.ipynb

Large diffs are not rendered by default.

5 changes: 5 additions & 0 deletions metpy/plots/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,11 @@
# Distributed under the terms of the BSD 3-Clause License.
# SPDX-License-Identifier: BSD-3-Clause

# Trigger matplotlib wrappers
from . import _mpl # noqa

from .skewt import * # noqa
from .station_plot import * # noqa
__all__ = []
__all__.extend(skewt.__all__) # pylint: disable=undefined-variable
__all__.extend(station_plot.__all__) # pylint: disable=undefined-variable
Loading

0 comments on commit 7d3bd75

Please sign in to comment.