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


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

replotting curves for different values of coefficients

X-Received by 10.157.17.136 with SMTP id v8mr4962603otf.92.1478298160984; Fri, 04 Nov 2016 15:22:40 -0700 (PDT)
X-Received by 10.157.40.215 with SMTP id s81mr367962ota.7.1478298160918; Fri, 04 Nov 2016 15:22:40 -0700 (PDT)
Path csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!news.glorb.com!q124no283832itd.0!news-out.google.com!i74ni177itb.0!nntp.google.com!q124no283826itd.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail
Newsgroups comp.graphics.apps.gnuplot
Date Fri, 4 Nov 2016 15:22:40 -0700 (PDT)
Complaints-To groups-abuse@google.com
Injection-Info glegroupsg2000goo.googlegroups.com; posting-host=73.202.210.224; posting-account=kLl-4AoAAADG1ZpE9YKX2nzTc7mKiPKi
NNTP-Posting-Host 73.202.210.224
User-Agent G2/1.0
MIME-Version 1.0
Message-ID <7f66318a-a67a-4ac3-95a5-b273176196e2@googlegroups.com> (permalink)
Subject replotting curves for different values of coefficients
From Dan Connelly <djconnel@gmail.com>
Injection-Date Fri, 04 Nov 2016 22:22:40 +0000
Content-Type text/plain; charset=UTF-8
Xref csiph.com comp.graphics.apps.gnuplot:3437

Show key headers only | View raw


I'm trying to superpose curves for different values of a coefficient.

For example, consider:

a = 1
plot a * x
a = 2
replot a*x
a = 3
replot a*x

This doesn't accomplish what I want, which is to superpose these curves.  This is because a is evaluated at plot time, rather than at the time the plot command is executed.

Any ideas?

This, on the other hand, does work, but isn't what I want to do, since my actual formulas are more complicated:

a = 1
plot a * x
b = 2
replot b*x
c = 3
replot c*x


thanks!

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


Thread

replotting curves for different values of coefficients Dan Connelly <djconnel@gmail.com> - 2016-11-04 15:22 -0700
  Re: replotting curves for different values of coefficients Karl Ratzsch <mail.kfr@gmx.net> - 2016-11-05 01:55 +0100

csiph-web