|
From: nole <aa...@ya...> - 2007-10-13 21:23:10
|
Hi, Need help!!! I am trying to make contour lines and Gnuplot does them without any error messages, but puts them in a completely wrong part of the frame. I have no idea why is it happening. Can anybody help me with that? Data looks like this: 100.0 180.0 0.0102775181 100.0 185.0 0.00628005061 100.0 190.0 0.00312976376 ... 420.0 800.0 0.0525174029 425.0 100.0 2.22260237 425.0 105.0 3.3110342 Here is the script: unset log # remove any log-scaling unset label # remove any previous labels unset dgrid3d # remove any previous binning set xtic auto # set xtics automatically set ytic auto # set ytics automatically set xrange[100:800] set yrange[100:650] set dgrid3d 140,100 set cntrparam levels discrete 0.095,0.11,013 splot "bdr1-omgh2.dat" using 2:1:3 -- View this message in context: http://www.nabble.com/need-help-with-contours-tf4619674.html#a13193574 Sent from the Gnuplot - User mailing list archive at Nabble.com. |
|
From: <HBB...@t-...> - 2007-10-14 11:41:26
|
nole wrote: > I am trying to make contour lines and Gnuplot does them without any error > messages, but puts them in a completely wrong part of the frame. You'll have to be more specific than that. Where does it put them, and why is that supposedly wrong? > Here is the script: > unset log # remove any log-scaling > unset label # remove any previous labels > unset dgrid3d # remove any previous binning > set xtic auto # set xtics automatically > set ytic auto # set ytics automatically > set xrange[100:800] > set yrange[100:650] > set dgrid3d 140,100 > set cntrparam levels discrete 0.095,0.11,013 > splot "bdr1-omgh2.dat" using 2:1:3 I strongly doubt that can be the actual script. This one's not doing any contouring at all --- it's missing a "set contour" command. And a '.' might have gone missing from the "set cntrparam" command. |
|
From: nole <aa...@ya...> - 2007-10-14 16:46:12
|
Thank you for the respond. Let me clarify.
I am trying to reproduce a plot made by other people, so I know where
contour should be in the plain. As an additional check I used "dot plot"
technique to plot my data, like that
plot "bdr1-omgh2.dat" using 2:($3>0.13 ?$1:0) w points,\
"bdr1-omgh2.dat" using 2:(($3<=3D0.13 && $3>=3D0.095 )?$1:0) w poi=
nts,\
"bdr1-omgh2.dat" using 2:($3<0.095 ?$1:0) w points
This gave me the expected result, so my data is correct. I even I ask my
friend to make these contours with another plotting program using my data
and they were in the right place.
Contours should be located in the low X half of the plain and go, more or
less, on 40 degree angle to Y-axis from the lower left corner till the uppe=
r
end of Y. But the contour line made by the script I shown (you were
correct, I forgot to write "set contour base", "unset surface", "set view
0,0" commands, but they were in the script all the time, sorry for the
confusion) produce contour lines in the *lower right* corner of the (X,Y)
plain, where, according to the picture made by the above "plot" command, Z
is <0.095
I have no idea what is going on with gnuplot. Hope you can help me. Thanks.
Hans-Bernhard Br=C3=B6ker-2 wrote:
>=20
> nole wrote:
>=20
>> I am trying to make contour lines and Gnuplot does them without any erro=
r
>> messages, but puts them in a completely wrong part of the frame.=20
>=20
> You'll have to be more specific than that. Where does it put them, and=
=20
> why is that supposedly wrong?
>=20
>> Here is the script:
>> unset log # remove any log-scaling
>> unset label=09 # remove any previous labels
>> unset dgrid3d # remove any previous binning
>> set xtic auto=09 # set xtics automatically
>> set ytic auto=09 # set ytics automatically
>> set xrange[100:800]
>> set yrange[100:650]
>> set dgrid3d 140,100
>> set cntrparam levels discrete 0.095,0.11,013
>> splot "bdr1-omgh2.dat" using 2:1:3=20
>=20
> I strongly doubt that can be the actual script. This one's not doing=20
> any contouring at all --- it's missing a "set contour" command. And a=20
> '.' might have gone missing from the "set cntrparam" command.
>=20
> -------------------------------------------------------------------------
> This SF.net email is sponsored by: Splunk Inc.
> Still grepping through log files to find problems? Stop.
> Now Search log events and configuration files using AJAX and a browser.
> Download your FREE copy of Splunk now >> http://get.splunk.com/
> _______________________________________________
> Gnuplot-info mailing list
> Gnu...@li...
> https://lists.sourceforge.net/lists/listinfo/gnuplot-info
>=20
>=20
--=20
View this message in context: http://www.nabble.com/need-help-with-contours=
-tf4619674.html#a13200774
Sent from the Gnuplot - User mailing list archive at Nabble.com.
|
|
From: <HBB...@t-...> - 2007-10-15 22:29:34
|
nole wrote: > Contours should be located in the low X half of the plain and go, more or > less, on 40 degree angle to Y-axis from the lower left corner till the upper > end of Y. But the contour line made by the script I shown (you were > correct, I forgot to write "set contour base", "unset surface", "set view > 0,0" commands, but they were in the script all the time, sorry for the > confusion) produce contour lines in the *lower right* corner of the (X,Y) > plain, where, according to the picture made by the above "plot" command, Z > is <0.095 And how sure are you that this wasn't caused by transposing the data (--> using 2:1:3 instead of the much more usual 1:2:3)? > I have no idea what is going on with gnuplot. And we have no idea what's going on with your data file, or your script, since you still haven't shown a reproducible example case. |