Skip to content

Commit

Permalink
Merge pull request #102 from NOAA-GFDL/nikizadehgfdl-patch-4
Browse files Browse the repository at this point in the history
correction to handle a none-None type
  • Loading branch information
jkrasting authored Jul 26, 2016
2 parents e672344 + 06272ed commit 40696f6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/analysis/m6plot.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ def xyplot(field, x=None, y=None, area=None,
if interactive: addStatusBar(xCoord, yCoord, maskedField)
cb = plt.colorbar(fraction=.08, pad=0.02, extend=extend)
if centerlabels and len(clim)>2: cb.set_ticks( 0.5*(clim[:-1]+clim[1:]) )
elif len(clim)>2: cb.set_ticks( clim )
elif clim is not None and len(clim)>2: cb.set_ticks( clim )
axis.set_axis_bgcolor(landcolor)
plt.xlim( xLims )
plt.ylim( yLims )
Expand Down

0 comments on commit 40696f6

Please sign in to comment.