-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixes in benchmark.py for when Ref and Dev are all zeroes
We have made the following fixes in benchmark.py: (1) If Ref and/or Dev are all zeroes, the normalized color range (which is returned by routine normalize_colors) will be manually set to 0..1. This will make the zero color show up as white. This also facilitates plotting a single tickmark at the middle of the range (e.g. cb.set_ticks([0.5]). (2) If the data being plotted in any of the 6 plot windows is zero everywhere, we now set a single tickmark at the center of the colorbar range with the label "Zero throughout domain". This makes it explicit that the data is zero everywhere. This commit resolves Github issues #17 and #18. Signed-off-by: Bob Yantosca <yantosca@seas.harvard.edu>
- Loading branch information
Showing
1 changed file
with
46 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters