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


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

Samples, isosamples, and how they affect contour lines

X-Received by 2002:a24:3692:: with SMTP id l140-v6mr11196038itl.11.1531292539472; Wed, 11 Jul 2018 00:02:19 -0700 (PDT)
X-Received by 2002:aca:c6ca:: with SMTP id w193-v6mr6534701oif.1.1531292539246; Wed, 11 Jul 2018 00:02:19 -0700 (PDT)
Path csiph.com!weretis.net!feeder6.news.weretis.net!feeder.usenetexpress.com!feeder-in1.iad1.usenetexpress.com!border1.nntp.dca1.giganews.com!nntp.giganews.com!d7-v6no497865itj.0!news-out.google.com!l67-v6ni510itl.0!nntp.google.com!g2-v6no486158itf.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail
Newsgroups comp.graphics.apps.gnuplot
Date Wed, 11 Jul 2018 00:02:19 -0700 (PDT)
Complaints-To groups-abuse@google.com
Injection-Info glegroupsg2000goo.googlegroups.com; posting-host=2601:647:4e00:bb8d:1d6:ecc2:efb:70d8; posting-account=1NWw0AkAAACEcE-hfvnJ0UUJTxBQ6UZg
NNTP-Posting-Host 2601:647:4e00:bb8d:1d6:ecc2:efb:70d8
User-Agent G2/1.0
MIME-Version 1.0
Message-ID <884eb2ab-a118-41a9-aaa1-bfcdd71f0d0e@googlegroups.com> (permalink)
Subject Samples, isosamples, and how they affect contour lines
From nawridlz@gmail.com
Injection-Date Wed, 11 Jul 2018 07:02:19 +0000
Content-Type text/plain; charset="UTF-8"
Content-Transfer-Encoding quoted-printable
Lines 29
Xref csiph.com comp.graphics.apps.gnuplot:3995

Show key headers only | View raw


Contour lines generated by gnuplot can look pretty strange (unexpected) if you do not set both `samples` and `isosamples` to appropriate values. I struggled for hours to find out how exactly `set samples` and `set isosamples` affect the appearance of contour lines, however, all I observed is that setting both to sufficiently large values will generate good-looking contours. Still, I want to understand how exactly this works.

1. What is the difference between `set samples` and `set isosamples` in the context of contour lines?
2. How does `set samples` affect the generation of contour lines?
3. How does `set isosamples` affect the generation of contour lines?

For example, consider the following simple case:

    unset surface
    set contour
    set cntrparam levels discrete 10, 20
    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?

I note that I asked this question before on Stack Overflow, but got no answers.

Back to comp.graphics.apps.gnuplot | Previous | NextNext 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