You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Thanks for this wonderful package. Is it possible to change the font for mathcal, mathfrak, sum symbol, integral symbol to be the default latex font (Computer Modern) while keep the font for the alphabet and number unchanged?
What you’re asking for is partly possible today, but not fully exposed by Matplotlib in a way that UltraPlot can simply toggle with one setting. The easiest place to start is \mathcal, because that already maps through mathtext.cal, while \mathfrak, \sum, and \int appear to be handled deeper inside Matplotlib’s mathtext font machinery rather than through separate public rc parameters. If you’d like to explore this further, this could make a solid PR: a good starting point would be ultraplot/internals/rcsetup.py, where the current mathtext.* defaults are defined, and ultraplot/internals/fonts.py, where UltraPlot already applies a custom mathtext override. From there, a sensible first step would be to document and test the existing \mathcal path in ultraplot/tests/test_fonts.py, then see whether that same override mechanism can be extended safely to cover \mathfrak and possibly operator glyphs as well.
Activity
cvanelteren commentedon May 12, 2026
What you’re asking for is partly possible today, but not fully exposed by Matplotlib in a way that UltraPlot can simply toggle with one setting. The easiest place to start is \mathcal, because that already maps through mathtext.cal, while \mathfrak, \sum, and \int appear to be handled deeper inside Matplotlib’s mathtext font machinery rather than through separate public rc parameters. If you’d like to explore this further, this could make a solid PR: a good starting point would be ultraplot/internals/rcsetup.py, where the current mathtext.* defaults are defined, and ultraplot/internals/fonts.py, where UltraPlot already applies a custom mathtext override. From there, a sensible first step would be to document and test the existing \mathcal path in ultraplot/tests/test_fonts.py, then see whether that same override mechanism can be extended safely to cover \mathfrak and possibly operator glyphs as well.
cvanelteren commentedon May 12, 2026
Note that \mathfrak \sum and \int has no native control from within matplotlib. You can only adjust the family globally.
cvanelteren commentedon Jun 29, 2026