00001
00002 c
00003 c Copyright (c) 1986,1987,1988,1989,1990,1991,1992,1993,
00004 c by Steve McMillan, Drexel University, Philadelphia, PA.
00005 c
00006 c All rights reserved.
00007 c
00008 c Redistribution and use in source and binary forms are permitted
00009 c provided that the above copyright notice and this paragraph are
00010 c duplicated in all such forms and that any documentation,
00011 c advertising materials, and other materials related to such
00012 c distribution and use acknowledge that the software was developed
00013 c by the author named above.
00014 c
00015 c THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR
00016 c IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
00017 c WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
00018 c
00019
00020 subroutine setpat(nt1,nb1,nt2,nb2)
00021 save
00022 c
00023 c Set pattern of dashes for dplot.
00024 c
00025 character*80 device
00026 common /plot device/ device,aspect,idev
00027 common/dash/dpatrn(10),dpat,npatrn,ipat,lpen
00028 c
00029 data blank,blank0/0.05,.025/
00030 c
00031 lpen=2
00032 ipat=1
00033 npatrn=4
00034 dpatrn(1)=nt1*blank
00035 dpatrn(2)=nb1*blank
00036 dpatrn(3)=nt2*blank
00037 dpatrn(4)=nb2*blank
00038 do 1 i=1,npatrn
00039 if (dpatrn(i).eq.0.) then
00040 dpatrn(i)=blank0
00041 c if (idev.eq.15) dpatrn(i)=2.*dpatrn(i)
00042 end if
00043 1 continue
00044 dpat=dpatrn(1)
00045 c
00046 return
00047 c
00048 entry getpat(i1,i2,i3,i4)
00049 c
00050 c Return pattern of dashes.
00051 c
00052 i1=dpatrn(1)/blank
00053 i2=dpatrn(2)/blank
00054 i3=dpatrn(3)/blank
00055 i4=dpatrn(4)/blank
00056 c
00057 end