Talk About Network

Google





Graphics > Gnuplot interactive function plotter > Plotting two di...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 2 Topic 3511 of 3655
Post > Topic >>

Plotting two different point types

by Matt <mbisgaier@[EMAIL PROTECTED] > Sep 17, 2008 at 11:40 PM

I'm trying to plot a piecewise function with points at the end of
functions, but I'm running into trouble getting gnuplot to recognize
different point types. Any help would be most appreciated.

clear
reset

set term postscript eps enh 20
set output "multiplot.eps"
set nokey

#set style line 1 lt 1 lw 3


f1(x)=(x<0) ? 0 : sqrt(-1)
f2(x) = 0<=x && x<1 ? 0.2 : 1/0
f3(x) = 1<=x && x<2 ? 0.7 : 1/0
f4(x) = 2<=x && x<3 ? 0.9 : 1/0
f5(x) = 3<=x ? 1 : 1/0
plot [-1:4][-.25:1.25] f1(x) ls 1, \
	f2(x) ls 1, \
	f3(x) ls 1, \
	f4(x) ls 1, \
	f5(x) ls 1, \
	"-" using 1:2 pt 6
		0	0
		1	0.2
		2	0.7
		3	0.9
	"-" using 1:2 pt 7
		0	0.2
		1	0.7
		2	0.9
		3	1
	end \
 




 2 Posts in Topic:
Plotting two different point types
Matt <mbisgaier@[EMAIL  2008-09-17 23:40:30 
Re: Plotting two different point types
Christoph Bersch <usen  2008-09-18 09:20:50 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
localhost-V2008-12-19 Wed Jan 7 23:26:11 PST 2009.