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.
Graphics, Figures & Tables ⇒ PGF Plot
NEW: TikZ book now 40% off at Amazon.com for a short time.

-
- Posts: 34
- Joined: Sun Oct 16, 2011 5:56 pm
Re: PGF Plot
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".
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".