From: murat selim çepni <mscepni@ya...> - 2007-02-26 09:33:55
Hi. My name is Murat, from turkey. I've met to gnuplot
a few days ago. I want to make use of gnuplot, but I
have a problem which I can't solve it. Ýf you're make
me help, I'll be very pleasure. I need drawing three
different bivariant polynom e.g f(x),g(x) and h(x). I
know that using multiplot function is posible. But I
want that all drawing on the same graphic and each
polynom must have to different range. For example;
a,b,c and d may be coordinat values along the x axis.
f(x) polynom's graphic between a and b (xrange[a,b]),
g(x) polynom's graphic between b and c
(xrange[b,c]),h(x) polynom's graphic between c and d
(xrange[c,d]). I look at the origin commmand, but I
think that this command working with screeen values.
Therefore using of coordinat values on range
definition is not possible. My ask for you is this
subject, How can I draw three functions with special
ranges in same coordinate system? Already now thanks
for suggestions. yours respectfully
murat selim cepni
Finding fabulous fares is fun.
Let Yahoo! FareChase search your favorite travel sites to find flight and hotel bargains.
murat selim Xepni wrote:
> a,b,c and d may be coordinat values along the x axis.
> f(x) polynom's graphic between a and b (xrange[a,b]),
> g(x) polynom's graphic between b and c
> (xrange[b,c]),h(x) polynom's graphic between c and d
gnuplot supports the ternary operator of the C programming language for
work like that:
set xrange [a:d]
plot (x < b) ? f(x) : (x < c) ? g(x) : h(x)
Consult "help ternary" to understand how this works.