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

Newsgroups comp.graphics.apps.gnuplot
Date 2016-11-04 15:22 -0700
Message-ID <7f66318a-a67a-4ac3-95a5-b273176196e2@googlegroups.com> (permalink)
Subject replotting curves for different values of coefficients
From Dan Connelly <djconnel@gmail.com>

Show all headers | 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