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


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

contour in gnuplot

Started bymohammed mouhcine <mohammed.mouhcine1@gmail.com>
First post2016-11-11 13:11 -0800
Last post2016-11-12 14:27 -0800
Articles 3 — 2 participants

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


Contents

  contour in gnuplot mohammed mouhcine <mohammed.mouhcine1@gmail.com> - 2016-11-11 13:11 -0800
    Re: contour in gnuplot Karl Ratzsch <mail.kfr@gmx.net> - 2016-11-12 08:47 +0100
      Re: contour in gnuplot mohammed mouhcine <mohammed.mouhcine1@gmail.com> - 2016-11-12 14:27 -0800

#3448 — contour in gnuplot

Frommohammed mouhcine <mohammed.mouhcine1@gmail.com>
Date2016-11-11 13:11 -0800
Subjectcontour in gnuplot
Message-ID<ccf98b2f-3f61-4eeb-9552-b2d97993c315@googlegroups.com>
my script:::

# Set terminal and output 
set terminal postscript enhanced color 
set output 'plot.ps' 
# Set various features of the plot 
set pm3d 
unset surface  # don't need surfaces 
set view map 
set contour 
set key outside 
set cntrparam cubicspline  # smooth out the lines 
set cntrparam levels 50    # sets the num of contour lines 
set pm3d interpolate 20,20 # interpolate the color 
# Set a nice color palette 
set palette model RGB defined ( 0&quot;black&quot;, 1&quot;blue&quot;, 
2&quot;cyan&quot;,3&quot;green&quot;,4&quot;yellow&quot;,\ 
     5&quot;red&quot;,8&quot;purple&quot; ) 
# Axes 
set xlabel 'X' 
set ylabel 'Y' 
set format x '%.1f' 
set format y '%.1f' 
set format z '%.2f' 
set size square 
# Now plot 
splot 'data.dat' using 1:2:3 notitle with lines lt 1

data file :::

 0.00000 0.00000 0.00000 
 0.10000 0.00000 0.00000 
 0.20000 0.00000 0.00000 
 0.30000 0.00000 0.00000 
 0.40000 0.00000 0.00000 
 0.50000 0.00000 0.00000 
 0.60000 0.00000 0.00000 
 0.70000 0.00000 0.00000 
 0.80000 0.00000 0.00000 
 0.90000 0.00000 0.00000 
 1.00000 0.00000 0.00000 
 0.00000 0.10000 0.00000 
 0.10000 0.10000 0.00869 
 0.20000 0.10000 0.01654 
 0.30000 0.10000 0.02276 
 0.40000 0.10000 0.02676 
 0.50000 0.10000 0.02813 
 0.60000 0.10000 0.02676 
 0.70000 0.10000 0.02276 
 0.80000 0.10000 0.01654 
 0.90000 0.10000 0.00869 
 1.00000 0.10000 0.00000

in complation : erreur after compulation:::
"d.gnu", line 14: undefined variable: quot

[toc] | [next] | [standalone]


#3449

FromKarl Ratzsch <mail.kfr@gmx.net>
Date2016-11-12 08:47 +0100
Message-ID<o06hdr$qf5$1@solani.org>
In reply to#3448
Am 11.11.2016 um 22:11 schrieb mohammed mouhcine:

> # Set a nice color palette 
> set palette model RGB defined ( 0&quot;black&quot;, 1&quot;blue&quot;, 
> 2&quot;cyan&quot;,3&quot;green&quot;,4&quot;yellow&quot;,\ 
>      5&quot;red&quot;,8&quot;purple&quot; ) 

> 
> in complation : erreur after compulation:::
> "d.gnu", line 14: undefined variable: quot
> 

I'm sure it'll work after you clean up that "set palette" command.

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


#3451

Frommohammed mouhcine <mohammed.mouhcine1@gmail.com>
Date2016-11-12 14:27 -0800
Message-ID<650080f6-5b67-48ee-8d2b-2c473d8d9f29@googlegroups.com>
In reply to#3449
Le samedi 12 novembre 2016 07:47:09 UTC, Karl Ratzsch a écrit :
> Am 11.11.2016 um 22:11 schrieb mohammed mouhcine:
> 
> > # Set a nice color palette 
> > set palette model RGB defined ( 0&quot;black&quot;, 1&quot;blue&quot;, 
> > 2&quot;cyan&quot;,3&quot;green&quot;,4&quot;yellow&quot;,\ 
> >      5&quot;red&quot;,8&quot;purple&quot; ) 
> 
> > 
> > in complation : erreur after compulation:::
> > "d.gnu", line 14: undefined variable: quot
> > 
> 
> I'm sure it'll work after you clean up that "set palette" command.

thanks

[toc] | [prev] | [standalone]


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


csiph-web