9.5 Changing font
The font used by Pyxplot can be changed using the set preamble command. In latex, fonts are changed by adding a header to a document, and the set preamble command specifies text that should be passed to latex before rendering any of the text labels on the present canvas. For example, the following command changes the default font to sans-serif:
set preamble r"\renewcommand{\familydefault}{\sfdefault}"