Skip to content
This repository has been archived by the owner on Dec 9, 2019. It is now read-only.

Commit

Permalink
fix plot bug
Browse files Browse the repository at this point in the history
  • Loading branch information
scivision committed Mar 9, 2018
1 parent dbce790 commit 13dfaad
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
4 changes: 2 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ install: pip -q install -e .[tests]

script: pytest -v

after_success:
- coverage run tests/test_all.py -v
after_success:
- coverage run tests/test_all.py
- coveralls

3 changes: 2 additions & 1 deletion glowaurora/plots.py
Original file line number Diff line number Diff line change
Expand Up @@ -246,6 +246,7 @@ def plotenerdep(tez,params,titlend=''):

def plotprodloss(prod,loss,params,st):
""" plot production/loss vs. alttiude """

fg = figure(figsize=(15,8))
ax = fg.subplots(1,2,sharey=True)
fg.suptitle(f' Volume Production/Loss Rates {st}')
Expand All @@ -254,7 +255,7 @@ def plotprodloss(prod,loss,params,st):
if R.ndim==2:
a.set_title('Volume {title} Rates')
try:
hi=a.pcolormesh(R.eV.values,
hi=a.pcolormesh(R.values,
R.z_km.values,
masked_invalid(R.values),
norm=LogNorm()) #pcolormesh canNOT handle nan at all!
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
# %%
setup(name='glowaurora',
packages=find_packages(),
version='1.2.0',
version='1.2.1',
author='Michael Hirsch, Ph.D.',
description='Model of auroral and airglow emissions',
long_description=open('README.rst').read(),
Expand Down

0 comments on commit 13dfaad

Please sign in to comment.