Graphics, Figures & TablesPGF Plot

Information and discussion about graphics, figures & tables in LaTeX documents.
Post Reply
conti
Posts: 1
Joined: Mon Dec 15, 2014 11:53 pm

PGF Plot

Post by conti »

Hi guys,

Does anyone know if it's possible to make 2-D contour with pgfplot using a dat file to read off data. All i could find online was about how to make a 3-D contour.
Thanks.

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

feuersaenger
Posts: 34
Joined: Sun Oct 16, 2011 5:56 pm

Re: PGF Plot

Post by feuersaenger »

Hi,

could you add some data file and/or reference to what you want to archieve?

When I hear "contour", I think of some function f(x,y) (= 3 values: x, y, and f(x,y) typically sampled as matrizes) and the task to find all (x,y) which have the same contour level "q = f(x,y)". These (x,y) make up a line.

This kind of operation can be done by means of \addplot3 contour gnuplot. If you want to project the result onto a plane, you can either use "view={0}{90}" or use a z filter (as described in section "Contour Plots" in the pgfplots reference manual).

I suppose both approaches result in a "2-D contour".
Post Reply