GeneralGraphs using the LaTeX fonts

LaTeX specific issues not fitting into one of the other forums of this category.
Post Reply
jayk
Posts: 6
Joined: Tue Apr 07, 2009 4:39 pm

Graphs using the LaTeX fonts

Post by jayk »

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)

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

Graphs using the LaTeX fonts

Post by localghost »

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¹
jayk
Posts: 6
Joined: Tue Apr 07, 2009 4:39 pm

Graphs using the LaTeX fonts

Post by jayk »

Best regards and welcome to the board
Thanks for welcoming!

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!
User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

Graphs using the LaTeX fonts

Post by localghost »

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.
mas
Posts: 226
Joined: Thu Dec 04, 2008 4:39 am

Re: Graphs using the LaTeX fonts

Post by mas »

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,

OS: Debian/GNU Linux; LaTeX System : TeXLive; Editor : Vim
jayk
Posts: 6
Joined: Tue Apr 07, 2009 4:39 pm

Re: Graphs using the LaTeX fonts

Post by jayk »

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!
Post Reply