Skip to content

Commit

Permalink
fixup some doctests
Browse files Browse the repository at this point in the history
  • Loading branch information
phobson committed Aug 21, 2020
1 parent 4c9f8fb commit af5b3f4
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
2 changes: 1 addition & 1 deletion cloudside/asos.py
Expand Up @@ -373,7 +373,7 @@ def get_data(
--------
>>> from cloudside import asos
>>> from tqdm import tqdm
>>> pdx = asos.get_data('KPDX', '2010-10-01', '2013-10-31', my_email,
>>> pdx = asos.get_data('KPDX', '2010-10-01', '2013-10-31', 'iamweather@sensors.net',
... folder='Portland_weather', raw_folder='asos_files',
... force_download=False, pbar_fxn=tqdm)
"""
Expand Down
9 changes: 6 additions & 3 deletions cloudside/viz.py
Expand Up @@ -476,11 +476,14 @@ def rose(
Example
-------
>>> from matplotlib import pyplot
>>> import cloudside
>>> data = cloudside.load_example_data()
>>> from tqdm import tqdm
>>> from cloudside import asos, viz
>>> data = asos.get_data('KPDX', '2010-10-01', '2010-12-01', 'iamweather@sensors.net',
... folder='Portland_weather', raw_folder='asos_files',
... force_download=False, pbar_fxn=tqdm)
>>> fig, ax = pyplot.subplots(figsize=(6, 6), subplot_kw=dict(polar=True))
>>> # use show_legend = False since the legend might overlap tick labels
>>> fig, rose = cloudsize.viz.windRose(data, ax=ax, show_legend=False)
>>> fig, rose = viz.rose(data, ax=ax, show_legend=False)
>>> # add legend ourselves in a position further away from the Axes
>>> ax.legend(loc='lower right', bbox_to_anchor=(1.5. 0.25))
Expand Down

0 comments on commit af5b3f4

Please sign in to comment.