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: Fri, 13 Jul 2018 12:39:51 +0200 Organization: solani.org Lines: 27 Message-ID: References: <884eb2ab-a118-41a9-aaa1-bfcdd71f0d0e@googlegroups.com> <31e8c304-ae02-4814-b3f3-48c06a77dded@googlegroups.com> <5187f490-08b0-4d98-acea-61f0ff158f3f@googlegroups.com> <62c2956e-101c-4c7d-8fc1-313f5670c3b5@googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Trace: solani.org 1531478392 12089 127.0.0.43 (13 Jul 2018 10:39:52 GMT) X-Complaints-To: abuse@news.solani.org NNTP-Posting-Date: Fri, 13 Jul 2018 10:39:52 +0000 (UTC) User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.9.1 Content-Language: en-GB In-Reply-To: <62c2956e-101c-4c7d-8fc1-313f5670c3b5@googlegroups.com> Cancel-Lock: sha1:zD8KsZl4lU861iazeZQcdgbE9iE= X-User-ID: eJwFwQEBACAIA7BKKvxoHAXeP4IbjJMZTtAhaFSsUYKHd/YhwN62TkWqQ8K783LbI1Np/gEe/hF5 Xref: csiph.com comp.graphics.apps.gnuplot:4011 Am 13.07.2018 um 09:22 schrieb nawridlz@gmail.com: > Can we go through a simple example? Consider once again the following case: > > set samples 6 > set isosamples 21 > set table $surface > splot x ** 2 + y ** 2 > unset table > set contour > set cntrparam levels discrete 80 > set view map > splot $surface > > Now, you wrote: > >> gnuplot takes the grid values in x-direction, and adds an interpolated >> contour point wherever the connection between these two points crosses >> the y-grid. > If I understand correctly, we consider two grid points consecutive in x-direction, for example (-6, -8) and (-2, -8). Now, we add a contour point between them, according to the plot at (-3.5, -8). Why exactly at (-3.5, -8)? That is where a line parallel to the x-axis at y=-8 and z=80 goes through that the badly sampled surface of z = x^2 + y2. At least that is how I understand the contour generation algorithm.