最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

gnuplot contour stops before reaching border - Stack Overflow

programmeradmin0浏览0评论

I have a file with a field (vr-cs) defined between -0 and 30 in x and -30 to 30 in y. You can download the file from here. I'm trying to plot a contour of vr-cs=0 between [0:8][0:3]

set view map
set contour
set cntrparam levels discrete 0
splot [0:8][0:3] "vr-cs101.gnu" w l nosurface notitle

This gives me:

As you can see, there is a gap between the contour and the y=0 axis.

Yet, if I do

splot [0:8][-3:3] "vr-cs101.gnu" w l nosurface notitle

I get:

Now the contour continues all the way through the y=0 axis. Is there a way to have a plot only of the [0:8][0:3] area but with the contour reaching the y=0? Thank you!

I have a file with a field (vr-cs) defined between -0 and 30 in x and -30 to 30 in y. You can download the file from here. I'm trying to plot a contour of vr-cs=0 between [0:8][0:3]

set view map
set contour
set cntrparam levels discrete 0
splot [0:8][0:3] "vr-cs101.gnu" w l nosurface notitle

This gives me:

As you can see, there is a gap between the contour and the y=0 axis.

Yet, if I do

splot [0:8][-3:3] "vr-cs101.gnu" w l nosurface notitle

I get:

Now the contour continues all the way through the y=0 axis. Is there a way to have a plot only of the [0:8][0:3] area but with the contour reaching the y=0? Thank you!

Share Improve this question asked Feb 6 at 19:27 bedwerebedwere 412 bronze badges
Add a comment  | 

1 Answer 1

Reset to default 0

I think that artifact is caused by a long-standing bug that was fixed a while ago. It is not present in the current gnuplot stable (6.0.2) or development (6.1) versions.

Here is a work-around to use with older versions of gnuplot.

set view map
set contour
set cntrparam levels discrete 0
set table $CONTOURS
splot [0:8][-3:3] "contourbug.dat" w l nosurface notitle
unset table

unset contour
splot [0:8][0:3] $CONTOURS with lines nosurface

发布评论

评论列表(0)

  1. 暂无评论