Path: csiph.com!weretis.net!feeder8.news.weretis.net!reader5.news.weretis.net!news.solani.org!.POSTED!not-for-mail From: Karl Ratzsch Newsgroups: comp.graphics.apps.gnuplot Subject: Re: 3D Color plot with 'DATASET STRUCTURED GRID' Date: Wed, 10 Aug 2022 22:17:18 +0200 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Date: Wed, 10 Aug 2022 20:17:19 -0000 (UTC) Injection-Info: solani.org; logging-data="647984"; mail-complaints-to="abuse@news.solani.org" User-Agent: Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:91.0) Gecko/20100101 Thunderbird/91.12.0 Cancel-Lock: sha1:IBz76R+wx68YrthOOXIct44Y8I4= In-Reply-To: X-User-ID: eJwNysEBwCAIA8CVEEKw41Qi+4/Q3vsyuNgFJpGTc9rjmvYMVRexvCFXzNv2mP5yNtV0VEGNDy/pEZE= Content-Language: de-DE Xref: csiph.com comp.graphics.apps.gnuplot:4489 Am 07.08.2022 um 14:48 schrieb Shahid Maqbool: > The output of my program has this data structure. I want to plot > a 3D color plot; so which command I should use here? Hmm, what you show are at least two data structures: > # vtk DataFile Version 2.0 > time_10.vtk > ASCII This is the first > DATASET STRUCTURED_GRID > DIMENSIONS 64 64 1 > POINTS 4096 float > 0.000000e+00 0.000000e+00 0.000000e+00 > 0.000000e+00 1.000000e+00 0.000000e+00 > 0.000000e+00 2.000000e+00 0.000000e+00 > 0.000000e+00 3.000000e+00 0.000000e+00 > 0.000000e+00 4.000000e+00 0.000000e+00 > . > . > . this is the second > POINT_DATA 4096 > SCALARS CON float 1 > LOOKUP_TABLE default > 3.924099e-01 > 4.029592e-01 > 4.077108e-01 > 3.937619e-01 > 4.073102e-01 > 3.991938e-01 Now what is what? x, y, z? Where does the colour info come from? And I'm sure you've checked gnuplot's demo gallery http://gnuplot.sourceforge.net/demo_5.4/ on 3D plots and surfaces. What is your plot supposed to look like? What can you make from the scripts shown there, what doesn't work for you? Best, Karl