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

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

And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p

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