Hello!
I recently tried to make some graphs for a LaTeX document about calculus. I have now downloaded GnuPlot and used it to produce the graphics. Unfortunately, it didn't look so nice as GnuPlot uses another font. Is there anyway to produce graphs with GnuPlot using the Computer Modern font? The only font I found looking like Computer Modern was "Euclid" -- which seems to be nearly identical. Why isn't the Computer Modern or Latin Modern font available? (I'm using Windows)
General ⇒ Graphs using the LaTeX fonts
NEW: TikZ book now 40% off at Amazon.com for a short time.
- localghost
- Site Moderator
- Posts: 9202
- Joined: Fri Feb 02, 2007 12:06 pm
Graphs using the LaTeX fonts
The Gnuplot FAQ have a short section about fonts in different terminals [1]. With the ZIP archive of the current version for Windows comes a short document called ps_fontfile_doc.ps which shows how to use TeX fonts in the postscript terminal. It focuses on the Computer Modern fonts.
[1] Gnuplot FAQ - Help! None of my fonts work.
Best regards and welcome to the board
Thorsten¹
[1] Gnuplot FAQ - Help! None of my fonts work.
Best regards and welcome to the board
Thorsten¹
How to make a "Minimal Example"
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10
Graphs using the LaTeX fonts
Thanks for welcoming!Best regards and welcome to the board
Fortunately, there is also a LaTeX version (ps_fontfile_docs.tex) available, so I've compiled this with pdfLaTeX and I am now reading it. Thank you for your help!
- localghost
- Site Moderator
- Posts: 9202
- Joined: Fri Feb 02, 2007 12:06 pm
Graphs using the LaTeX fonts
In the case that you have simple plots which don't need a comprehensive manipulation of their data sets, you should think about using packages like pgfplots (based on pgf/tikZ) or pstricks. Then there would be no font issue.
How to make a "Minimal Example"
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10
Re: Graphs using the LaTeX fonts
If you have the recent version of gnuplot, I would suggest to have a look at the pslatex terminal type. The axis labels, legends, et al. are all typeset with LaTeX.
Regards,
Regards,
OS: Debian/GNU Linux; LaTeX System : TeXLive; Editor : Vim
Re: Graphs using the LaTeX fonts
Well, I have downloaded it recently, but as it is not straight of the hourse's mouth, I think it's not the most recent version.
pgfplots sounds good. It seemd to be an easy way (in combination with TeXnicCenter code snippets) and produces a great-looking output. Thanks a lot!

pgfplots sounds good. It seemd to be an easy way (in combination with TeXnicCenter code snippets) and produces a great-looking output. Thanks a lot!