hello, thanks for your answer. At first it works. But the plot is one function, it means i can not plot them with two colors or with two titles. Do your have any suggestion for this?
Thomas Sefzick wrote:
plot x<=2 ? 2*x*x : -2*x*x+16
or
plot x<=2 ? 2*x*x : 0/0 , x>=2 ? -2*x*x+16 : 0/0
for more information see the manual
http://www.gnuplot.info/docs/gnuplot.html('gnuplot' - 'expressions' - 'operators' - 'ternary')
or type
help ternary
at the gnuplot prompt.
> hallo, everyone,
>
> is it possbile to plot two functions with seperate
> ranges in one plot? for example,
> y=2*x*x, x =[0,2], y=-2x*x+16, x=[2,4].
> Anyone has an idea?