Rocksolid Light

Welcome to novaBBS (click a section below)

mail  files  register  newsreader  groups  login

Message-ID:  

"I have just one word for you, my boy...plastics." -- from "The Graduate"


devel / comp.graphics.apps.gnuplot / Re: 3D Color plot with 'DATASET STRUCTURED GRID'

SubjectAuthor
* 3D Color plot with 'DATASET STRUCTURED GRID'Shahid Maqbool
`* Re: 3D Color plot with 'DATASET STRUCTURED GRID'Karl Ratzsch
 `- Re: 3D Color plot with 'DATASET STRUCTURED GRID'Shahid Maqbool

1
3D Color plot with 'DATASET STRUCTURED GRID'

<d6d0cf24-6db0-4a2c-be38-daff1b684ce6n@googlegroups.com>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=112&group=comp.graphics.apps.gnuplot#112

  copy link   Newsgroups: comp.graphics.apps.gnuplot
X-Received: by 2002:ac8:5e14:0:b0:31f:4280:8d93 with SMTP id h20-20020ac85e14000000b0031f42808d93mr12173021qtx.36.1659876482013;
Sun, 07 Aug 2022 05:48:02 -0700 (PDT)
X-Received: by 2002:a9d:378b:0:b0:61c:1cb5:b88 with SMTP id
x11-20020a9d378b000000b0061c1cb50b88mr5486068otb.325.1659876481744; Sun, 07
Aug 2022 05:48:01 -0700 (PDT)
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!feed1.usenet.blueworldhosting.com!peer01.iad!feed-me.highwinds-media.com!news.highwinds-media.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.graphics.apps.gnuplot
Date: Sun, 7 Aug 2022 05:48:01 -0700 (PDT)
Injection-Info: google-groups.googlegroups.com; posting-host=119.202.84.99; posting-account=XnSkHAoAAADfjJd2J8yTdEJJrrgeBtts
NNTP-Posting-Host: 119.202.84.99
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <d6d0cf24-6db0-4a2c-be38-daff1b684ce6n@googlegroups.com>
Subject: 3D Color plot with 'DATASET STRUCTURED GRID'
From: shahid...@gmail.com (Shahid Maqbool)
Injection-Date: Sun, 07 Aug 2022 12:48:02 +0000
Content-Type: text/plain; charset="UTF-8"
X-Received-Bytes: 1720
 by: Shahid Maqbool - Sun, 7 Aug 2022 12:48 UTC

Dear all,

The output of my program has this data structure. I want to plot
a 3D color plot; so which command I should use here?

# vtk DataFile Version 2.0
time_10.vtk
ASCII
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
..
..
..
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
..
..
..

Best regards
Shahid

Re: 3D Color plot with 'DATASET STRUCTURED GRID'

<td13of$jopg$1@solani.org>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=114&group=comp.graphics.apps.gnuplot#114

  copy link   Newsgroups: comp.graphics.apps.gnuplot
Path: i2pn2.org!i2pn.org!weretis.net!feeder8.news.weretis.net!reader5.news.weretis.net!news.solani.org!.POSTED!not-for-mail
From: mail....@gmx.net (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: <td13of$jopg$1@solani.org>
References: <d6d0cf24-6db0-4a2c-be38-daff1b684ce6n@googlegroups.com>
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: <d6d0cf24-6db0-4a2c-be38-daff1b684ce6n@googlegroups.com>
X-User-ID: eJwNysEBwCAIA8CVEEKw41Qi+4/Q3vsyuNgFJpGTc9rjmvYMVRexvCFXzNv2mP5yNtV0VEGNDy/pEZE=
Content-Language: de-DE
 by: Karl Ratzsch - Wed, 10 Aug 2022 20:17 UTC

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

Re: 3D Color plot with 'DATASET STRUCTURED GRID'

<c5b64611-74bf-47a8-bfb7-bf32ca3e049en@googlegroups.com>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=115&group=comp.graphics.apps.gnuplot#115

  copy link   Newsgroups: comp.graphics.apps.gnuplot
X-Received: by 2002:a05:622a:81:b0:35c:be20:5255 with SMTP id o1-20020a05622a008100b0035cbe205255mr13908154qtw.351.1663570928662;
Mon, 19 Sep 2022 00:02:08 -0700 (PDT)
X-Received: by 2002:a05:6830:6315:b0:638:c7e4:b516 with SMTP id
cg21-20020a056830631500b00638c7e4b516mr7416796otb.151.1663570928397; Mon, 19
Sep 2022 00:02:08 -0700 (PDT)
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!feed1.usenet.blueworldhosting.com!peer03.iad!feed-me.highwinds-media.com!news.highwinds-media.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.graphics.apps.gnuplot
Date: Mon, 19 Sep 2022 00:02:08 -0700 (PDT)
In-Reply-To: <td13of$jopg$1@solani.org>
Injection-Info: google-groups.googlegroups.com; posting-host=141.223.63.196; posting-account=XnSkHAoAAADfjJd2J8yTdEJJrrgeBtts
NNTP-Posting-Host: 141.223.63.196
References: <d6d0cf24-6db0-4a2c-be38-daff1b684ce6n@googlegroups.com> <td13of$jopg$1@solani.org>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <c5b64611-74bf-47a8-bfb7-bf32ca3e049en@googlegroups.com>
Subject: Re: 3D Color plot with 'DATASET STRUCTURED GRID'
From: shahid...@gmail.com (Shahid Maqbool)
Injection-Date: Mon, 19 Sep 2022 07:02:08 +0000
Content-Type: text/plain; charset="UTF-8"
X-Received-Bytes: 2191
 by: Shahid Maqbool - Mon, 19 Sep 2022 07:02 UTC

> 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?

The output is the vtk format. The output file is usually used for visualization
using Paraview software. I do not know how that software works and how
it reads. My interest is all about using gnuplot for this output file.

The output should look like using these commands for 2D matrix data structure:

set palette rgbformulae 33,13,10
splot 'data.dat' matrix with pm3d notitle

Basically, I have two different types of the same problem. One output is in the matrix
format in dat extension and has worked fine using above mentioned commands. The
other output is vtk format and i am trying to understand its plot using gnuplot instead
of using regular software like Paraview.

regards,
Shahid

1
server_pubkey.txt

rocksolid light 0.9.8
clearnet tor