Hello!
I am using Cetz for plotting my analysis and was wondering if there is any way to change the font of the axis numbering to the global used font?
Thank you!
Hello!
I am using Cetz for plotting my analysis and was wondering if there is any way to change the font of the axis numbering to the global used font?
Thank you!
It uses the math font. You can override tick formatting by setting x-format: value => { ...content... } (and y-format: ...). Or just set your wanted math font globally (Math – Typst Documentation).
Example:
x-format: value => { show math.equation: set text(font: "<your font>"); cetz-plot.axes.formats.decimal(value) },