I want to make a plot with different value of the same parameter (say I have five values) and all on the same plot. How can this be done in gnuplot 4.4? For example consider plotting f(x)= 1/(1+exp(x/a)).
To have several plots in one graph use:
f(x,a) = 1/(1+exp(x/a))
plot f(x,1), f(x,2)
For a more automated plot command, use for
iteration:
plot for [a=1:5:2] 1/(1+exp(x/a)) title sprintf("a = %d", a)
That gives (with version 4.4.4):
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With