Graphics, Figures & TablesRe-plot figures with LaTeX

Information and discussion about graphics, figures & tables in LaTeX documents.
Post Reply
niles
Posts: 92
Joined: Mon Dec 01, 2008 9:35 pm

Re-plot figures with LaTeX

Post by niles »

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.

Recommended reading 2024:

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

Learn LaTeX easily with newest books:

The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis

The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more

LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis

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

Re-plot figures with LaTeX

Post by localghost »

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
niles
Posts: 92
Joined: Mon Dec 01, 2008 9:35 pm

Re: Re-plot figures with LaTeX

Post by niles »

Thanks, I'll try and work something out. I'll let you know about the results.
Post Reply