Hi
Say I have a plot in some program, which I want to include in my document. Now, I would like for the plot to be in "TeX"-style, i.e. all the text (including the one on the coordinate system axes) should be with the same font that is used in the rest of the document.
Is there a way of taking a vectorized plot (e.g. PostScript), and re-plotting it in LaTeX?
Best,
Niles.
Graphics, Figures & Tables ⇒ Re-plot figures with LaTeX
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
Re-plot figures with LaTeX
For EPS graphics it would be possible to replace certain pieces of text with LaTeX stuff by the psfrag package. But you need to know the original stuff. That's very easy for elements like the axes captions, which you could name »xlabel« and »ylabel« in your original plot and replace later in your document. But it becomes more complicated for the values on the axes.
There are packages like pgfplots (based on pgf/tikZ) or pst-plot (based on pstricks) which allow to plot your datasets from inside LaTeX. Perhaps that's an interesting alternative for you because this way don't have to bother about the consistency of your document. If you don't know where to start, upload one of your plots you already did along with the according dataset(s) and we will see where we can help.
Thorsten
There are packages like pgfplots (based on pgf/tikZ) or pst-plot (based on pstricks) which allow to plot your datasets from inside LaTeX. Perhaps that's an interesting alternative for you because this way don't have to bother about the consistency of your document. If you don't know where to start, upload one of your plots you already did along with the according dataset(s) and we will see where we can help.
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
Re: Re-plot figures with LaTeX
Thanks, I'll try and work something out. I'll let you know about the results.