finncatling / lap-risk

Uncertainty-aware mortality risk modelling in emergency laparotomy, using data from the NELA.
MIT License
5 stars 0 forks source link

Switch to Helvetica in figures #107

Closed finncatling closed 3 years ago

finncatling commented 3 years ago

BJA guidelines recommends we use this rather than DejaVu Sans (the matplotlib default)

finncatling commented 3 years ago

Helvetica is listed in the BDAU when inspecting matplotlib.font_manager.fontManager.afmlist, but trying to switch to Helvetica as follows:

import matplotlib.pyplot as plt
plt.rcParams['font.sans-serif'] = ['Helvetica']

throws the error Font family ['sans-serif'] not found. Falling back to DejaVu Sans

Closing for now as DejaVu Sans is quite similar to Helvetica