Embedded Formatting Commands (looking for an expert) [message #74036] |
Thu, 16 December 2010 09:08 |
natha
Messages: 482 Registered: October 2007
|
Senior Member |
|
|
Hi gurus,
I need an expert of Embedded Formatting Commands to help me.
I'm trying to write the C_CORRELATE formula in a PostScript. My code
is as follows:
;;
------------------------------------------------------------ ----------------------------------------------
SET_PLOT, 'PS'
!P.FONT=0
DEVICE, FILENAME='dummy.ps', XSIZE=10, YSIZE=10
str='!9'+STRING("345B)+'!S!A!E!7N-L-1!R!B!IK=0!N (x!Dk!N -!
9'+STRING("140B)+$
'!7x)(y!Dk+L!N -!9'+STRING("140B)+'!7y)';+$
XYOUTS, 0.5, 0.6, str, /NORMAL, ALIGNMENT=0.5, CHARSIZE=1
str='!9( '+STRING("133B)+STRING("345B)+'!S!A!E!7N-1!R!B!IK=0!N(x!
Dk!N - !9'+$
STRING("140B)+'!7x)!E2!N!9'+STRING("135B)+STRING("133B)
+STRING("345B)+$
'!S!A!E!7N-1!R!B!IK=0!N(y!Dk!N - !9'+STRING("140B)+'!7y)!E2!N!
9'+STRING("135B)+$
' )!E1/2!N'
XYOUTS, 0.5, 0.4, str, /NORMAL, ALIGNMENT=0.5, CHARSIZE=1
DEVICE, /CLOSE
;;
------------------------------------------------------------ ----------------------------------------------
I have a problem trying to write the upper part and the lower part of
the formula together. How can I do it ?
I know this is embarrassing but any help is appreciated.
Thanks in advance.
nata
|
|
|