1 | SUBROUTINE uniplot(im,jm,champ) |
---|
2 | INTEGER isys,system |
---|
3 | EXTERNAL system |
---|
4 | INTEGER imx,jmx |
---|
5 | PARAMETER (imx=400,jmx=200) |
---|
6 | INTEGER im,jm,i,j,nreg |
---|
7 | REAL champ(im,jm) |
---|
8 | REAL xinf,xsup,yinf,ysup |
---|
9 | REAL xorig,yorig,xlength,ylength,xfac,yfac |
---|
10 | REAL xreg(1),yreg(1) |
---|
11 | REAL x(imx),y(jmx) |
---|
12 | LOGICAL francais,flreg,flgri,fliso |
---|
13 | REAL txtheight,linewidth,fdismin,flonmin |
---|
14 | INTEGER ishade,inter_exter |
---|
15 | CHARACTER*200 txtstr(5) |
---|
16 | |
---|
17 | xorig=20. |
---|
18 | yorig=20. |
---|
19 | xlength=120. |
---|
20 | ylength=120. |
---|
21 | xfac=1. |
---|
22 | yfac=1. |
---|
23 | xinf=1. |
---|
24 | xsup=im |
---|
25 | yinf=1. |
---|
26 | ysup=jm |
---|
27 | nreg=1 |
---|
28 | DO i=1,im |
---|
29 | x(i)=i |
---|
30 | ENDDO |
---|
31 | DO j=1,jm |
---|
32 | y(j)=j |
---|
33 | ENDDO |
---|
34 | |
---|
35 | DO i=1,5 |
---|
36 | txtstr(i)=" " |
---|
37 | ENDDO |
---|
38 | |
---|
39 | txtstr(2)='i' |
---|
40 | txtstr(3)='j' |
---|
41 | |
---|
42 | OPEN(10,file='/tmp2/planetes/tmp.graph', |
---|
43 | s status='unknown',form='formatted') |
---|
44 | |
---|
45 | WRITE(10,*) im,jm,nreg |
---|
46 | WRITE(10,*) xorig,yorig,xlength,ylength,xfac,yfac, |
---|
47 | s xinf,xsup,yinf,ysup |
---|
48 | WRITE(10,*) (x(i),i=1,im),(y(j),j=1,jm), |
---|
49 | s ((champ(i,j),i=1,im),j=1,jm), |
---|
50 | s (xreg(i),i=1,nreg),(yreg(j),j=1,nreg) |
---|
51 | |
---|
52 | francais=.true. |
---|
53 | flreg=.false. |
---|
54 | flgri=.false. |
---|
55 | fliso=.true. |
---|
56 | txtheight=3.7 |
---|
57 | linewidth=.2 |
---|
58 | fdismin=0. |
---|
59 | flonmin=0. |
---|
60 | ishade=3 |
---|
61 | inter_exter=0 |
---|
62 | WRITE(10,*) francais,flreg,flgri,fliso |
---|
63 | WRITE(10,*) txtheight,linewidth,fdismin,flonmin |
---|
64 | WRITE(10,*) ishade,inter_exter |
---|
65 | DO i=1,5 |
---|
66 | WRITE(10,'(a200)') txtstr(i) |
---|
67 | ENDDO |
---|
68 | CLOSE(10) |
---|
69 | |
---|
70 | isys=system( |
---|
71 | s 'rsh ella " xterm -display $DISPLAY -n controle_graph |
---|
72 | s -e /u2/planetes/graph/lance" ' ) |
---|
73 | |
---|
74 | END |
---|