Repository navigation
Fix GEMPAK color 8 to match coltbl.xwp - #4227
Open
1915rising wants to merge 1 commit into
Open
1915rising wants to merge 1 commit into
1915rising wants to merge 1 commit into
Conversation
1915rising
requested review from
dopplershift
and removed request for
a team
November 24, 2026 23:17
This branch has not been deployed
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #4226.
convert_gempak_color(8)returned#CD6839(RGB 205, 104, 57), the X11 sienna3 value. GEMPAK's own$GEMTBL/colors/coltbl.xwpdefines color 8 (BROWN) as RGB (139, 71, 38), which is#8B4726, so color 8 rendered noticeably lighter/redder than in GEMPAK.Reproduction (from the issue):
Fix: change the single table entry for color 8 in
metpy.plots._utilto#8B4726. The twompl_image_comparebaselines for the GEMPAK color tests are regenerated, since they embed the old color; all other colors are unchanged.Tests: new regression test
test_gempak_color_brownasserts color 8 in both styles.pytest tests/plots/test_util.py -k gempak --mpl: 5 passed before, 6 passed after. Fulltest_util.py --mplrun: the 4test_add_timestamp*image failures are identical before and after this change (pre-existing in my environment).