Skip to content

Instantly share code, notes, and snippets.

@raphaeldussin
Created January 11, 2024 14:49
Show Gist options
  • Save raphaeldussin/b747bfb9db05144629f012e8ff79feff to your computer and use it in GitHub Desktop.
Save raphaeldussin/b747bfb9db05144629f012e8ff79feff to your computer and use it in GitHub Desktop.

Download the fonts from https://github.com/stipub/stixfonts

dirstix = "/net2/rnd/dev/stixfonts/fonts/static_ttf"
import matplotlib.font_manager as font_manager
for font in font_manager.findSystemFonts(dirstix):
    font_manager.fontManager.addfont(font)

# Set font family globally
plt.rcParams['font.family'] = 'STIX Two Text'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment