Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change the colors of the captions in the evansplot chart #125

Closed
Wanhenri opened this issue Feb 5, 2020 · 4 comments
Closed

Change the colors of the captions in the evansplot chart #125

Wanhenri opened this issue Feb 5, 2020 · 4 comments

Comments

@Wanhenri
Copy link

Wanhenri commented Feb 5, 2020

A chart was created based on the evansplot chart. I would like to know how to change the subtitle colors

evansplot

@phillips-ad
Copy link
Collaborator

When you say change the subtitle colors, can you specify exactly which part of the plot you wish to change the colors of?

@Wanhenri
Copy link
Author

Wanhenri commented Feb 6, 2020

Hi Adam, thanks for your answer. In this figure, I'd like to exclude the pink color from the Legend and maintain blue, green, yellow and red colors. In addition, I'd like to change the numbers 1 2 3 4 to DJF, MAM, JJA, SON respectively. I will appreciate your suggestion.

@phillips-ad
Copy link
Collaborator

The Evans plotting function applications page uses user-contributed coding to draw various plots while providing numerous customization options for one to modify the plot. I am not familiar with the Evans functions, but I can offer advice to get some of what you want.

See example #5 on the applications page. The contour levels are set like this:
res@epMinHueLevel = -20
res@epMaxHueLevel = 60
res@epHueLevelSpacing = 10

You will want to change the settings to this:
res@epMinHueLevel = 1
res@epMaxHueLevel = 4
res@epHueLevelSpacing = 1

You will also want to alter the major tick mark settings like this:
res@tmXBMode = "Explicit"
res@tmXBValues = (/1,2,3,4/)
res@tmXBLabels = (/"DJF","MAM","JJA","SON"/)

To move the labels underneath the center of the label bar boxes, set this:
res@lbLabelPosition = "Center"

You can alter the colors by setting the various saturation/hue resources as documented on the Evans plot page.
Hope that helps!

@pilotchute
Copy link

@phillips-ad Thanks for that explanation.
Looks like this is solved now, closing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants