|
From: Thomas S. <t.s...@fz...> - 2008-10-15 09:02:04
|
with 'set dgrid3d 70,70' you are interpolating over the matrix
with an inappropriate grid.
the arguments to 'set dgrid3d' should be:
n * (number_of_xdata - 1) + 1
n * (number_of_ydata - 1) + 1
otherwise your interpolation grid will not contain the data points
you have given.
> I want to graph a surface in gnuplot of the following matrix:
>
> 0 0 0 0 0 0
> 0 0.00641154 0.01751273 0.01554609 0.00609739 0
> 0 -3.502E-05 0.009302 0.02995384 0.01733484 0
> 0 0.02041813 0.03013938 -0.17901065 -0.18546722 0
> 0 0.00014728 0.00946959 0.03005793 0.01772059 0
> 0 0 0 0 0 0
>
> I use the following settings:
>
> unset surface
> set terminal windows color enhanced
> set ticslevel 0
> set xtics(" " 0, "1" 1, "2" 2, "3" 3, "4" 4, " " 5)
> set ytics(" " 0, "1" 1, "2" 2, "3" 3, "4" 4, " " 5)
> set grid
> set dgrid3d 70,70
> set pm3d
> splot "filname.txt" matrix
>
> (filename.txt = matrix)
>
> The problem is that the plot doesn't show the correct values.
--
View this message in context: http://www.nabble.com/Problem-with-splot-tp19970779p19989477.html
Sent from the Gnuplot - User mailing list archive at Nabble.com.
|