Lagrange
Lagrange

Reputation: 71

Changing Font when plotting with Gnuplot

When I plot a graph in gnuplot, I get the following message:

qt.qpa.fonts: Populating font family aliases took 320 ms. Replace uses of missing font family "Sans" with one that exists to avoid this cost. Error: plot window (gnuplot_qt) not responding - will restart

I get that I have to change the font to "Sans". Right? If so, how do I do that? I have no idea.

Upvotes: 3

Views: 2685

Answers (1)

Richard Kirk
Richard Kirk

Reputation: 331

Add this line to .zshrc...

export GNUTERM="qt font \"Arial,12\""

This fixed it for me on Mac Big Sur. You can omit the ",12" if you want to keep the default font size, but this may look a bit small in Arial.

The Mac font on Big Sur is called "San Francisco" or "SF" but I have not been able to find it by these names, or the earlier "Lucinda Grande". The best fit is probably...

export GNUTERM="qt font \"Helvetica\""

Upvotes: 1

Related Questions