ESMValGroup / ESMValTool

ESMValTool: A community diagnostic and performance metrics tool for routine evaluation of Earth system models in CMIP
https://www.esmvaltool.org
Apache License 2.0
218 stars 127 forks source link

A question about fonts for R diagnostics #3396

Open ehogan opened 11 months ago

ehogan commented 11 months ago

While working on the Recipe Test Workflow (RTW) I noticed that recipe_heatwaves_coldwaves.yml produces plots with different fonts when running on different OSs (RHEL7 and Ubuntu; the same environment is used in each case):

plot

The other two recipes tested by the RTW use Python diagnostics and there are no differences between the KGOs produced by these recipes on the two different OSs.

I am not familar with R; is there a way to configure R to use the same fonts regardless of OS? Either globally within ESMValTool or at the diagnostic level?

I don't know what OS JASMIN or DKRZ uses, but it would be great to resolve this if this would be the only reason why we couldn't use the same KGOs across sites :)

bouweandela commented 11 months ago

I found this blog post which recommends using the Cairo package for creating plots with consistently good looking text. Maybe you could give that a try?

valeriupredoi commented 11 months ago

not sure it's wise now, with el-Sisi being so unpopular, and the impending wider crisis in the Middle East @bouweandela :grin: