        SUBROUTINE GRAFIN(X,Y,LFLAG)
        LOGICAL *2 LFLAG
C
C       DISPLAY AND READ THE GRAPHICS CURSOR AND RETURN ITS POSITION
C       IN WORLD COORDINATES.
C
        INCLUDE PLTCOM.PRM
        INCLUDE PLTSIZ.PRM
C
C       GET CURSOR POSITION IN VIRTUAL COORDINATES.
C
        CALL GSCRSR(X,Y,LFLAG,IERR)
        IF (IERR .NE. 0) RETURN
        X = (X-XVSTRT)*UDX/XVLEN + UX0
        IF (LOGX) X = 10.0**X
        Y = (Y-YVSTRT)*UDY/YVLEN + UY0
        IF (LOGY) Y = 10.0**Y
        RETURN
        END
