Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.graphics.apps.gnuplot > #4010

Re: Samples, isosamples, and how they affect contour lines

Path csiph.com!feeder.erje.net!1.eu.feeder.erje.net!weretis.net!feeder4.news.weretis.net!feeder5.news.weretis.net!news.solani.org!.POSTED!not-for-mail
From Karl Ratzsch <mail.kfr@gmx.net>
Newsgroups comp.graphics.apps.gnuplot
Subject Re: Samples, isosamples, and how they affect contour lines
Date Fri, 13 Jul 2018 09:53:02 +0200
Organization solani.org
Lines 41
Message-ID <pi9lov$54v$1@solani.org> (permalink)
References <884eb2ab-a118-41a9-aaa1-bfcdd71f0d0e@googlegroups.com>
Mime-Version 1.0
Content-Type text/plain; charset=utf-8
Content-Transfer-Encoding 7bit
X-Trace solani.org 1531468383 5279 127.0.0.43 (13 Jul 2018 07:53:03 GMT)
X-Complaints-To abuse@news.solani.org
NNTP-Posting-Date Fri, 13 Jul 2018 07:53:03 +0000 (UTC)
User-Agent Mozilla/5.0 (Windows NT 6.1; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.9.1
Cancel-Lock sha1:ElaZ5fzTwq5YSYkTGbsKF4RQgbc=
Content-Language en-GB
In-Reply-To <884eb2ab-a118-41a9-aaa1-bfcdd71f0d0e@googlegroups.com>
X-User-ID eJwFwYEBwCAIA7CXGNii51CU/09YguDHzkVwYTDpsfO64F0e0/ZsyuvkXEm9XcynOFYgGvMDJmcRuA==
Xref csiph.com comp.graphics.apps.gnuplot:4010

Show key headers only | View raw


Am 11.07.2018 um 09:02 schrieb nawridlz@gmail.com:

>     set samples 250, 2
>     set isosamples 2, 250
>     set view map
>     splot x**2 + y**2

> To generate correct contour lines, it appears you need to set the first parameter of `samples` and the second parameter of `isosamples` to sufficiently large values. However, setting the second parameter of `samples` and the first parameter of `isosamples` to the smallest possible value does no harm.. This is not exactly intuitive. So how does this work?

Has nothing to do with contours.

"set sample x, y" specifies how many points are generated on each
isoline in the respective direction.

"set isosamp x, y" specifies the number of isolines.

set sample 100,40
set isos 10,4
set view map; splot 1 w p

makes four isolines with 100 points in direction x,
and 10 isolines with 40 points each in direction y.

To not get isolines, but just an even grid, you give the same parameters
to set sample and isosample

set sample 50,20
set isosample 50,20

Actually you can always set one of the isosample parameters to "2", to
get an even grid, you only need the isolines in one direction. And you
can set the sample number in the other direction to "2" also, because
the needed points are already generated by the isolines in the first
direction.

set sample 50,2      # this also makes an even 50:20 matrix
set isosample 2,20



Back to comp.graphics.apps.gnuplot | Previous | NextPrevious in thread | Find similar


Thread

Samples, isosamples, and how they affect contour lines nawridlz@gmail.com - 2018-07-11 00:02 -0700
  Re: Samples, isosamples, and how they affect contour lines Karl Ratzsch <mail.kfr@gmx.net> - 2018-07-11 11:26 +0200
    Re: Samples, isosamples, and how they affect contour lines nawridlz@gmail.com - 2018-07-11 22:39 -0700
      Re: Samples, isosamples, and how they affect contour lines Karl Ratzsch <mail.kfr@gmx.net> - 2018-07-12 08:08 +0200
        Re: Samples, isosamples, and how they affect contour lines nawridlz@gmail.com - 2018-07-11 23:50 -0700
          Re: Samples, isosamples, and how they affect contour lines Karl Ratzsch <mail.kfr@gmx.net> - 2018-07-12 17:18 +0200
            Re: Samples, isosamples, and how they affect contour lines nawridlz@gmail.com - 2018-07-13 00:22 -0700
              Re: Samples, isosamples, and how they affect contour lines Karl Ratzsch <mail.kfr@gmx.net> - 2018-07-13 12:39 +0200
  Re: Samples, isosamples, and how they affect contour lines Karl Ratzsch <mail.kfr@gmx.net> - 2018-07-13 09:53 +0200

csiph-web