Path: csiph.com!weretis.net!feeder4.news.weretis.net!feeder5.news.weretis.net!news.solani.org!.POSTED!not-for-mail From: Karl Ratzsch Newsgroups: comp.graphics.apps.gnuplot Subject: Re: Samples, isosamples, and how they affect contour lines Date: Thu, 12 Jul 2018 17:18:23 +0200 Organization: solani.org Lines: 40 Message-ID: References: <884eb2ab-a118-41a9-aaa1-bfcdd71f0d0e@googlegroups.com> <31e8c304-ae02-4814-b3f3-48c06a77dded@googlegroups.com> <5187f490-08b0-4d98-acea-61f0ff158f3f@googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Trace: solani.org 1531408703 2125 127.0.0.43 (12 Jul 2018 15:18:23 GMT) X-Complaints-To: abuse@news.solani.org NNTP-Posting-Date: Thu, 12 Jul 2018 15:18:23 +0000 (UTC) User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.9.1 X-User-ID: eJwFwYEBgDAIA7CXZECL5wis/59gkg7DMJCIVKqtX+4JNnHNvUxVXugdPHaSHF5tfQioZT8P3xDm In-Reply-To: <5187f490-08b0-4d98-acea-61f0ff158f3f@googlegroups.com> Cancel-Lock: sha1:DTlY4CLBjtHBcQSpNBx1M1tPqhY= Content-Language: en-GB Xref: csiph.com comp.graphics.apps.gnuplot:4007 Am 12.07.2018 um 08:50 schrieb nawridlz@gmail.com: > By y-grid you mean the plane z = 80? > no, the sampling distance between points in direction y. set sample 6 set isosample 500 gives a grid with 6 points in direction x, times 500 in direction y. That's the grid you see with set view map splot $surface How should the contour routine know what the z values at x=0 are when there is nothing to interpolate between? Actually your contour is terrible between [-10:-6] and [6:10] too. It looks nice and round, but is a very sketchy interpolation, much worse even in [-6:-2] and [2:6] reset set samp 100 set isos 100 set table $surf200 # this is a well-gridded plot splot x**2+y**2 set samp 6 set isos 500 set table $surface # this isn't rep unset table set view map set cntrparam levels discrete 20, 40, 60, 80 set contour unset surface # comment out to see the grid splot $surf200 w l title "200x200 grid", \ $surface w p ps .5 pt 1 title "6x500 grid"