Skip to content

Commit

Permalink
Merge pull request Unidata#34 from dopplershift/docs
Browse files Browse the repository at this point in the history
Full documentation (Fixes Unidata#19)
  • Loading branch information
dopplershift committed May 4, 2015
2 parents 6a708a2 + 01949a1 commit 2bfa9e4
Show file tree
Hide file tree
Showing 8 changed files with 556 additions and 271 deletions.
2 changes: 1 addition & 1 deletion docs/source/api/io.rst
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@ File Formats (I/O)

.. automodule:: metpy.io
:members:
:undoc-members:
:special-members: __init__
8 changes: 5 additions & 3 deletions docs/source/examples/generated/Simple_Sounding.rst
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@ Simple Sounding
from metpy.calc import get_wind_components
from metpy.plots import SkewT
# Change default to be better for skew-T
plt.rcParams['figure.figsize'] = (9, 9)
.. code:: python
Expand All @@ -18,9 +21,8 @@ Simple Sounding
.. code:: python
# Create a new figure. The dimensions here give a good aspect ratio
fig = plt.figure(figsize=(9, 9))
skew = SkewT(fig)
# Create a skewT using matplotlib's default figure size
skew = SkewT()
# Plot the data using normal plotting functions, in this case using
# log scaling in Y, as dictated by the typical meteorological plot
Expand Down
12 changes: 7 additions & 5 deletions examples/notebooks/Simple_Sounding.ipynb

Large diffs are not rendered by default.

8 changes: 5 additions & 3 deletions examples/scripts/Simple_Sounding.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,16 @@
from metpy.calc import get_wind_components
from metpy.plots import SkewT

# Change default to be better for skew-T
plt.rcParams['figure.figsize'] = (9, 9)

# Parse the data
p, T, Td, direc, spd = np.loadtxt('../testdata/sounding_data.txt',
usecols=(0, 2, 3, 6, 7), unpack=True)
u, v = get_wind_components(spd, direc)

# Create a new figure. The dimensions here give a good aspect ratio
fig = plt.figure(figsize=(9, 9))
skew = SkewT(fig)
# Create a skewT using matplotlib's default figure size
skew = SkewT()

# Plot the data using normal plotting functions, in this case using
# log scaling in Y, as dictated by the typical meteorological plot
Expand Down
Loading

0 comments on commit 2bfa9e4

Please sign in to comment.