c$Id: tplot.f,v 1.1 2000/08/24 20:49:58 rlt Exp $ subroutine tplot(x1,y1,tx,mm,nctr) c * * F E A P * * A Finite Element Analysis Program c.... Copyright (c) 1984-2005: Robert L. Taylor c All rights reserved c-----[--+---------+---------+---------+---------+---------+---------+-] c Purpose: Place a string of text in plot c Inputs: c x1,y1 - Postion on plot to place text c tx(*) - String of text to plot c mm - Number of characters in text c nctr - Centering information c Outputs: c none - Text placed in plot region on screen/file c-----[--+---------+---------+---------+---------+---------+---------+-] implicit none include 'pdata2.h' include 'pdatap.h' include 'pdatps.h' include 'psdat3.h' include 'pdatxt.h' include 'plflag.h' include 'x11f.h' integer mm,nn character tx(*)*1 integer i, j, jj, nctr real*8 x1,y1 save c Set number of characters nn = abs(mm) c Position for text output call dplot(x1,y1,3) c X11: Output text i = -(1024+nn) x11(1) = xp(2)*xx(2) y11(1) = yp(2)*xx(3)*1.28 y11(2) = nctr do j = 1,nn jj = ichar(tx(j)) x11(j+1) = jj end do if(screfl) then call gdx11(i,x11,y11) endif c PostScript: Output text if (hdcpy) then call dplot(x1+dtext,y1,3) call fptplt(xp,yp,tx,nn,nctr) endif end