3

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.

2
  • 1
    That message is not coming from gnuplot. It must be from some system-level utility that manages fonts. I interpret it to mean that the font family "Sans" is not installed on your machine. But yes, you could probably also avoid it by specifying a different font to gnuplot: set term qt font "Geneva,12". I obviously don't know what fonts you have. Commented Dec 26, 2020 at 18:46
  • I plotted a graph in wxmaxima which uses gnuplot. When plotting the graph I received the message above. As far as I know, "Sans" is installed in my machine. Sorry for asking, but how exactly does the command work that you posted here? Commented Dec 27, 2020 at 13:18

1 Answer 1

1

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\""
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.