Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.graphics.apps.gnuplot > #4487 > unrolled thread

3D Color plot with 'DATASET STRUCTURED GRID'

Started byShahid Maqbool <shahid718@gmail.com>
First post2022-08-07 05:48 -0700
Last post2022-09-19 00:02 -0700
Articles 3 — 2 participants

Back to article view | Back to comp.graphics.apps.gnuplot


Contents

  3D Color plot with 'DATASET STRUCTURED GRID' Shahid Maqbool <shahid718@gmail.com> - 2022-08-07 05:48 -0700
    Re: 3D Color plot with 'DATASET STRUCTURED GRID' Karl Ratzsch <mail.kfr@gmx.net> - 2022-08-10 22:17 +0200
      Re: 3D Color plot with 'DATASET STRUCTURED GRID' Shahid Maqbool <shahid718@gmail.com> - 2022-09-19 00:02 -0700

#4487 — 3D Color plot with 'DATASET STRUCTURED GRID'

FromShahid Maqbool <shahid718@gmail.com>
Date2022-08-07 05:48 -0700
Subject3D Color plot with 'DATASET STRUCTURED GRID'
Message-ID<d6d0cf24-6db0-4a2c-be38-daff1b684ce6n@googlegroups.com>
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

[toc] | [next] | [standalone]


#4489

FromKarl Ratzsch <mail.kfr@gmx.net>
Date2022-08-10 22:17 +0200
Message-ID<td13of$jopg$1@solani.org>
In reply to#4487
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

[toc] | [prev] | [next] | [standalone]


#4490

FromShahid Maqbool <shahid718@gmail.com>
Date2022-09-19 00:02 -0700
Message-ID<c5b64611-74bf-47a8-bfb7-bf32ca3e049en@googlegroups.com>
In reply to#4489
> 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

[toc] | [prev] | [standalone]


Back to top | Article view | comp.graphics.apps.gnuplot


csiph-web