%!PS-Adobe-1.0 EPSF-1.0 %%BoundingBox: 21 299 297 583 %%Comment: Bounding box extracted by bboxx %%+: A program by Dov Grobgeld 2003 %%Comment: Bounding box extracted by bboxx %%+: A program by Dov Grobgeld 2003 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %% FRIDA: fast reliable interactive data analysis %% %% wups24a.ps: graphic macros %% %% (C) Joachim Wuttke 1990-2024 %% %% http://www.messen-und-deuten.de/frida %% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% /WuGdict24a 400 dict def WuGdict24a begin %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %% Generic and math operators %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %% Shortcuts: /np { newpath } bind def /mv { moveto } bind def /rm { rmoveto } bind def /rl { rlineto } bind def /li { lineto } bind def /cp { closepath } bind def /st { stroke } bind def /x { exch } bind def /gs { gsave } bind def /gr { grestore } bind def /G { gsave exec grestore } bind def %% Math operators: /twopi { 6.2831853072 } def /rnd { rand cvr 1 30 bitshift div 2 div 0 max 1 min } def % -> between 0 and 1 /min { 2 copy gt { x } if pop } def /max { 2 copy lt { x } if pop } def /tan { dup sin x cos div } def /cot { dup cos x sin div } def /pol2xy{ 2 copy cos mul 3 1 roll sin mul } def % r phi | x y /eexp { 2.71828 x exp } def % "exp" is x^y, eexp is e^x /tanh { 2.71828 x 2 copy exp 3 1 roll neg exp 2 copy sub 3 1 roll add div } def %% Loop: /iterate { % xi yi what dx dy num_repeats | - %% after each repeat, translates by (dx,dy) gsave 6 4 roll xym translate % what x_mv y_mv num_repeats { % what x_mv y_mv 3 copy 3 2 roll exec xym translate } repeat pop pop pop grestore } def %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %% Incremental path construction with persistent direction %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% /NP { % x y [new path] gsave translate np 0 0 mv } bind def /EP { % [end path] grestore } bind def /L { % len rel_dir [line] 90 mul rotate 0 2 copy rl translate } bind def /A { % radius angle [arc segment] /IPCa x 90 mul def /IPCr x def IPCa 0 lt { 0 IPCr neg IPCr 90 90 IPCa add arcn 0 IPCr neg translate IPCa rotate 0 IPCr translate } { 0 IPCr IPCr -90 -90 IPCa add arc 0 IPCr translate IPCa rotate 0 IPCr neg translate } ifelse } def /V { % size [simple arrow] - gsave /IPCr x def np -.8 IPCr mul .6 IPCr mul mv 0 0 li -.8 IPCr mul -.6 IPCr mul li st grestore } def % size [arrow] /Vc { % size [triangular unfilled arrow] - gsave /IPCr x def np -.8 IPCr mul .6 IPCr mul mv 0 0 li -.8 IPCr mul -.6 IPCr mul li cp { white fill } G st grestore } def % %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %% Page coordinates %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% /pt { .018567 mul} bind def % for line widths and font sizes, reason unclear /cm {28.346456 mul} bind def % typographic_point -> cm /cmtranslate { % x y [] - cm x cm x translate } bind def % Move origin from lower left (PostScript default) to upper left /setnewpage { % xoff yoff /yoffnewpage x def /xoffnewpage x def } def /originUpperLeft_A4{ .7 28.3 cmtranslate } bind def /goffsetA4 { ungscale originUpperLeft_A4 gscale } def /newpage { goffsetA4 xoffnewpage yoffnewpage offset } def % Set absolute global scale and relative symbol size /defsiz { % size(cm) symbolsize(rel) | - /ftot x def /gsiz x cm 10 div def gscale % within 'size', coordinates run from 0 to 10 } def /gscale { gsiz dup scale } def /ungscale { 1 gsiz div dup scale } def % Symbol (and label?) size as sublinear function of figure size /autolabel { % size(cm) | symbolsize(rel) dup 7 div 2 add 4 mul % the simplest sublinear increase x div % anticipate overall rescaling } def % Aspect ratios /gyld {0.447214 mul} bind def /Gyld {0.447214 div} bind def % sqrt(5) /guld {0.547723 mul} bind def /Guld {0.547723 div} bind def % sqrt(3) /gold {0.618034 mul} bind def /Gold {0.618034 div} bind def % goldener Schnitt /gild {0.707107 mul} bind def /Gild {0.707107 div} bind def % sqrt(2) : DIN /geld {0.759836 mul} bind def /Geld {0.759836 div} bind def % sqrt(sqrt(3)) /gald {0.817765 mul} bind def /Gald {0.817765 div} bind def % sqrt sqrt sqrt 5 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %% Several frames per page %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% /setpagegrid { % ncol nrow xoffnewframe yoffnewframe /yoffnewframe x def /xoffnewframe x def /nrowpage x def /ncolpage x def } def /iFrame 0 def /nextFrame { /iFrame iFrame 1 add def iFrame nrowpage ncolpage mul mod 0 eq { showpage gscale newpage } { iFrame ncolpage mod 0 eq { xoffnewframe ncolpage 1 sub neg mul yoffnewframe offset } { xoffnewframe 0 offset } ifelse } ifelse } def %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %% Frame coordinates %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% /defred { % x_reduction y_reduction label_reduction | - /fmm x ftot mul def /ymm x def /xmm x def % conversion frame_coordinate -> global_coord /xm {xmm mul} bind def /ym {ymm mul} bind def /fm {fmm mul} bind def /xym {ym x xm x} bind def % prefer rescaling over explicit conversion (make more use of this !) /mmscale { xmm ymm scale } bind def /mmunscale { 1 xmm div 1 ymm div scale } bind def % graphic commands in frame coordinates /offset { xym translate } bind def /currentxy { currentpoint ymm div x xmm div x } bind def /setline { pt fm setlinewidth [] 0 setdash } bind def } def /stdred { % x_reduction y_reduction | - 2 copy mul sqrt defred } def %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %% World (= user application) coordinates %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% /xSetCoord { % log min max | - /wxmax x def /wxmin x def /wxlog x 0 eq not def /wxdel wxmax wxmin wxlog { div log } { sub } ifelse def /wxd { % dx(world) | dx(frame) wxlog { log } if wxdel div 10 mul } bind def /wx { % x(world) | x(frame) wxmin wxlog { div } { sub } ifelse wxd } bind def } def /ySetCoord { % log min max | - /wymax x def /wymin x def /wylog x 0 eq not def /wydel wymax wymin wylog { div log } { sub } ifelse def /wyd { % dy(world) | dy(frame) wylog { log } if wydel div 10 mul } bind def /wy { % y(world) | y(frame) wymin wylog { div } { sub } ifelse wyd } bind def } def /hSetCoord { % log min max | - % for use in 2D plot /whmax x def /whmin x def /whlog x 0 eq not def /wH { % h(world) | h(col) dup whmin lt { pop -1 } { dup whmax gt { pop 11 } { wh } ifelse } ifelse } bind def whlog { /whdel whmax whmin div log def /wh { whmin div log whdel div 10 mul } bind def % h(world) | h(col) } { /whdel whmax whmin sub def /wh { whmin sub whdel div 10 mul } bind def % h(world) | h(col) } ifelse } def % pair conversion /wxy { % x,y(world) -> x,y(frame) wy x wx x } def %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %% Colors %% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %% Color operators: /setRGBcolor { 3 { 255 div 3 1 roll } repeat setrgbcolor } def /colormix { % weight(0..1) col1(R|G|B) col2(R|G|B) | col(R|G|B) 7 -1 roll dup /weightA x def /weightB x 1 x sub def 4 -1 roll weightA mul x weightB mul add 5 1 roll 3 -1 roll weightA mul x weightB mul add 4 1 roll 2 -1 roll weightA mul x weightB mul add 3 1 roll } def /relcol { % i_col n_col | rel(0..1) : for one-dimensional choices 1 sub div 0 max 1 min } def %% Named colors: /black { 0 setgray } bind def /white { 1 setgray } bind def /red { 255 0 0 setRGBcolor } bind def /siemensorange { 255 153 0 setRGBcolor } bind def /siemensblue { 0 102 153 setRGBcolor } bind def /siemenstext { 0 51 102 setRGBcolor } bind def /siemensred { 165 0 33 setRGBcolor } bind def /siemenspink { 221 102 102 setRGBcolor } bind def /siemensgrey { 221 221 221 setRGBcolor } bind def /siemensdark { 102 102 102 setRGBcolor } bind def /siemensgreen { 33 153 102 setRGBcolor } bind def /siemensyellow { 255 221 0 setRGBcolor } bind def %% One-dimensional linear color choices: /iCol1 { % i i_max | - : default -2010, round the circle, RGBR relcol dup 1 x % rel 1 rel 360 mul 255 add cos 1 add dup mul neg .053 mul 1 add % modulate saturation sethsbcolor } def /iCol2 { % i i_max | - : cyan - yellow - magenta relcol 3 mul dup 1 le { dup 1 sub neg 0 3 2 roll } { dup 2 le { 1 sub dup 1 sub neg 0 3 1 roll } { 2 sub dup 1 sub neg 0 3 0 roll } ifelse } ifelse 0 setcmykcolor } def /iCol3 { % i i_max | - : siemens div /icnow x def 165 1 icnow sub mul 102 icnow mul 33 120 icnow mul add setRGBcolor } def /iCol4 { % i i_max | - : red to blue (subsequence of old scheme iCol1) relcol 3 x sub 3 div 1 iCol1 } def %% One-dimensional color choice from given array: /iColA { % i i_max arr | - /aCol x def relcol aCol length 1 sub mul % position within array dup cvi dup 3 1 roll % idx pos idx sub x % offset idx 0 max aCol length 1 sub min % offset safe_idx dup 1 add aCol length 1 sub min % offset i i+1 aCol x get exec 4 3 roll aCol x get exec colormix setRGBcolor } def %% ditto with discontinuous values for h<0 and h>1 /iColAA { % i i_max arr {low_col} {hig_col} | - 5 3 roll div dup 0 lt { pop pop x pop exec } { dup 1 gt { pop 3 1 roll pop pop exec } { 1 % arr {l} {h} i i_max 5 2 roll pop pop x 1 add x % ad-hoc correction for legacy definition of relcol iColA } ifelse } ifelse } def %% Color arrays for non-linear one-dimensional choices: /aCol1 [ % red-blue { 255 0 0 } % 1 { 240 10 10 } % 2 { 220 40 40 } % 3 { 205 65 90 } % 4 { 195 80 130 } % 5 { 180 110 180 } % 6 { 165 120 185 } % 7 { 150 130 190 } % 8 { 130 150 210 } % 9 { 110 125 220 } % 10 { 85 105 230 } % 11 { 70 90 255 } % 12 { 0 0 255 } % 13 ] def /aCol2 [ % orange-red-blue-darkblue { 255 180 0 } { 255 160 0 } { 255 120 0 } { 255 70 0 } { 255 0 0 } { 220 30 30 } { 220 70 60 } { 220 100 110 } { 200 130 130 } { 200 130 160 } { 180 110 180 } { 165 110 185 } { 150 130 190 } { 130 150 210 } { 100 120 220 } { 85 105 230 } { 70 90 255 } { 0 0 255 } { 0 0 180 } { 10 10 150 } { 30 30 130 } ] def /aCol3 [ % [fixed size: max_i=8] siemenscolors { 165 0 33 } % siemensred { 33 153 102 } % siemensgreen { 0 102 153 } % siemensblue { 0 51 102 } % siemenstext { 255 153 0 } % siemensorange { 102 102 102 } % siemensdark { 255 221 0 } % siemensyellow { 221 221 221 } % siemensgrey { 221 102 102 } % siemenspink ] def /aCol4 [ % green-blue-brown { 120 160 60 } { 90 185 40 } { 50 215 20 } { 0 245 0 } { 10 235 112 } { 20 235 143 } { 30 230 173 } { 40 225 194 } { 50 205 215 } { 40 153 204 } { 40 102 153 } { 40 82 122 } { 90 74 101 } { 140 68 80 } { 170 59 60 } { 190 50 40 } { 180 65 40 } { 160 80 40 } { 140 100 40 } { 120 80 30 } { 100 60 20 } ] def /aCol5 [ % [fixed size: max_i=7] old gnuplot default (see man gnuplot and rgb.txt) { 255 0 0 } % red { 0 255 0 } % green { 0 0 255 } % blue { 255 0 255 } % magenta { 0 255 255 } % cyan { 160 82 45 } % sienna { 255 165 0 } % orange { 255 127 80 } % coral ] def /aCol6 [ % heat plot { 100 0 100 } % violet { 60 30 130 } % dark blue { 30 50 220 } % blue { 50 150 100 } % green { 150 200 100 } % green { 215 255 50 } % green/yellow { 255 255 0 } % yellow { 255 125 0 } % orange { 255 0 0 } % red ] def /aCol7 [ % [fixed size: max_i=8] default colors, modified from old gnuplot { 80 80 255 } % blue { 255 0 0 } % red { 0 160 0 } % dark green { 255 0 255 } % magenta { 0 160 192 } % dark cyan { 160 82 45 } % sienna { 255 165 0 } % orange { 255 127 80 } % coral { 64 224 32 } % light greenish ] def /aCol8 [ % matplotlib's viridis: blue - green -yellow { 64 0 79 } { 72 36 117 } { 65 68 135 } { 53 95 141 } { 42 120 142 } { 33 145 140 } { 34 168 132 } { 68 191 112 } { 122 209 81 } { 189 223 38 } { 239 218 34 } ] def /aCol9 [ % matplotlib's inferno: black - violet - red - orange - yellow { 0 0 0 } { 27 12 65 } { 74 12 107 } { 120 28 109 } { 165 44 96 } { 207 68 70 } { 237 105 37 } { 251 155 6 } { 247 209 61 } { 252 255 164 } ] def %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %% Fonts %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % extend font encoding /ReEncode { % OldFont NewFont Encoding | - /MyEncoding x def x findfont % select OldFont dup length dict begin {def} forall /Encoding MyEncoding def currentdict end definefont pop % define as NewFont } def % we assume that image scripts are Latin1 encoded /Helvetica /MyFont ISOLatin1Encoding ReEncode /Helvetica-Oblique /MyFont-Oblique ISOLatin1Encoding ReEncode /Helvetica-Bold /MyFont-Bold ISOLatin1Encoding ReEncode /Helvetica-BoldOblique /MyFont-BoldOblique ISOLatin1Encoding ReEncode /setPalatino { /Palatino /MyFont ISOLatin1Encoding ReEncode /Palatino-Italic /MyFont-Oblique ISOLatin1Encoding ReEncode /Palatino-Bold /MyFont-Bold ISOLatin1Encoding ReEncode /Palatino-BoldItalic /MyFont-BoldOblique ISOLatin1Encoding ReEncode } def %% Preset standard styles: % scale and set font; define fontsize, fontheight /setfontandsize { % font size | - dup 0 le { pop 100 } if % fontsize <= 0 not allowed ! /fontnonnil true def pt fm dup /fontsize x def x findfont x scalefont setfont gsave % determine fontheight - from the cookbook : np 0 0 mv (W) true charpath flattenpath pathbbox % low_left_x, low_left_y, up_right_x, up_right_y /fontheight x def /fontwidth x def pop pop grestore } def % standard settings for labelling axes /numlabcol { black } def /setnum { /MyFont 24 setfontandsize numlabcol } def /setlab { /MyFont 24 setfontandsize numlabcol } def % user commands (free choice of fontsize, but fixed font family) /setown { /MyFont x setfontandsize } def /setbol { /MyFont-Bold x setfontandsize } def /setboq { /MyFont-BoldOblique x setfontandsize } def /setobl { /MyFont-Oblique x setfontandsize } def %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %% Text blocks %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% /showif { % string | - : increment xwidth or plot string prepare { stringwidth pop xwidth add /xwidth x def } { show } ifelse } def /script { % matrix relpos_y | - /yoffset x fontheight mul def currentfont x makefont setfont 0 yoffset rm } def /scred .71 def /subsc { showif [scred 0 0 scred 0 0] -.2 script } def /supsc { showif [scred 0 0 scred 0 0] .6 script } def /endsc { showif regularfont setfont 0 yoffset neg rm } def /grec { showif /Symbol findfont fontsize scalefont setfont } def /endgr { showif regularfont setfont } def /endall { showif regularfont setfont } def /build { % string xrel yrel obj | - : plot obj above/below string /obj x def /yrelbui x def /xrelbui x def dup showif prepare { pop } { stringwidth pop xrelbui neg mul fontheight yrelbui mul % relpos for obj currentpoint 4 2 roll % save position after string rm obj pop % obj must end with () that will be pop'ed mv % back to saved position } ifelse } def /gbuild { % string xrel yrel obj | - : plot obj above/below string /obj x def /yrelbui x def /xrelbui x def /Symbol findfont fontsize scalefont setfont dup showif prepare { pop regularfont setfont } { stringwidth pop xrelbui neg mul fontheight yrelbui mul % relpos for obj currentpoint 4 2 roll % save position after string regularfont setfont rm obj pop % obj must end with () that will be pop'ed mv % back to saved position } ifelse } def /hut { % ..) () hut (.. %%% MISERABEL PROGRAMMIERT x showif 1.4 .6 {(\136) show ()} build } def /ghut { % ..) () ghut (.. %%% BREITE PASST NUR FUER Phi(t) x showif .8 .65 {(\136) show ()} gbuild } def /tilde { x showif 1. .6 {(~) show ()} build } def /gtilde { x showif 1. .6 {(~) show ()} gbuild } def /spce { % string n spce - ; insert n times ( ) {showif ( )} repeat } def % the following macros use the symbol/curve plotting mechanism /pins { % string symins - ; symbol must be selected by pset showif ( ) showif ( ) .5 .5 { currentxy 0 p black ()} build ( ) showif } def /clenins { % string len clenins - ; curve must be selected by cset x showif % I suppose that pins is preceeded by 8 spaces dup ( ) stringwidth pop mul 2 add /xstrich x xmm div def % length of inserted curve : % -1 space : curve begins and ends in middle of ( ) % +3 spaces: pins requires 3 times ( ) ( ) 0 .5 { currentxy currentxy 0 ci x xstrich add x 0 cf () } build 2 add {( ) showif} repeat } def /cins { % string symins - ; curve must be selected by cset showif 8 % I suppose that pins is preceeded by 8 spaces dup ( ) stringwidth pop mul 2 add /xstrich x xmm div 10 div def % nov03, ohne zu verstehen, "10 div" eingefuegt % length of inserted curve : % -1 space : curve begins and ends in middle of ( ) % +3 spaces: pins requires 3 times ( ) ( ) 0 .5 { currentxy currentxy 0 ci x xstrich add x 0 cf () } build 2 add {( ) showif} repeat } def /block { % x y ob xrel yrel | - /yrel x def /xrel x def /blabla x def /ypos x ym def /xpos x xm def /regularfont currentfont def /yoffset 0 def % initialize for security /prepare true def /xwidth 0 def 0 0 mv % to prevent empty-path-error blabla endall % first pass : determine xwidth boxif { /boxwidth xwidth (M) stringwidth pop boxxr mul 2 mul add def /boxheight fontheight 1 boxyr 2 mul add mul def np xpos xwidth xrel mul sub boxwidth xwidth sub 2 div sub ypos fontheight .5 boxyr add mul sub mv boxwidth 0 rl 0 boxheight rl boxwidth neg 0 rl cp boxproc } if xpos xwidth xrel mul sub ypos fontheight yrel mul sub mv /prepare false def blabla endall % second pass : plot /boxif false def } def /rblock { % x y ang ob proc rblock - 5 3 roll gsave xym translate 3 2 roll rotate 0 0 4 2 roll exec grestore } def /Box { % x y {exe} /boxif true def /boxproc x def /boxyr x def /boxxr x def } def /nBox { .6 .6 3 2 roll Box } def /boxif false def /textW { % obj | length : calculate only length. /blabla x def /regularfont currentfont def /yoffset 0 def % initialize for security /prepare true def /xwidth 0 def 0 0 mv % to prevent empty-path-error blabla endall xwidth % has been determined } def /textw { % obj | y : dito, in 0..10-units textW xmm div } def % horizontal text: x y ob | - /textLB { 0. 0. block } bind def /textCB { .5 0. block } bind def /textRB { 1. 0. block } bind def /textLM { 0. .5 block } bind def /textCM { .5 .5 block } bind def /textRM { 1. .5 block } bind def /textLT { 0. 1. block } bind def /textCT { .5 1. block } bind def /textRT { 1. 1. block } bind def % rotated text: x y ang ob | - /rtextLB { {textLB} rblock } bind def /rtextLM { {textLM} rblock } bind def /rtextRB { {textRB} rblock } bind def /rtextRM { {textRM} rblock } bind def /rtextCM { {textCM} rblock } bind def %% Language selection: % preset /language { % choose_this of_so_many | - % select current language /langMax x def /langChc x def } def 1 1 language % default % choose text from sequence /langSel { % text_1 .. text_M | text_C : choose text, M=langMax, C=langChc langMax dup langChc sub 1 add roll langMax 1 sub { pop } repeat } def %% Text composition shortcuts: /g { x grec endgr} bind def /sb { x subsc endsc} bind def /sp { x supsc endsc} bind def /sbgr { x grec () subsc endsc () endgr} bind def /spgr { x grec () supsc endsc () endgr} bind def %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %% Coordinate Frame %% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %% Layout presets: /xyTicLen {0.10 fm} def /xyTacLen {0.20 fm} def /txllen {0.20 fm} def /tyllen {0.20 fm} def /linsetAxx {black 0.7 setline} def /linsetTic {black 0.7 setline} def /linsetTac {black 0.7 setline} def /linsetGri {black 0.4 setline} def %% Start-up commands: /Resets { /yNumLengthL 0 def /yNumLengthH 0 def /xNumHeightL .3 def /xNumHeightH 0 def /xNumHeightRel 2.4 def /aMean 5 def black } def /BoxBackground { 0 10 0 10 rect gsave setboxbackgroundcolor fill grestore } def /setboxbackgroundcolor { white } def /zValues { pop pop } def /whiteframe { 1 0 0 10 10 graybox } def /abc {abclab setown abcx abcy 3 2 roll textCM} def % usage ((a)) abc /abcset { % x y siz abcset - : preset for abc /abclab x def /abcy x def /abcx x def } def %% Ticks: % set tick array - internal macros /tiputs { % rel_pos_of_tick | pos_of_tick : innermost routine for /taproc tastep mul taloop add } def /taproclin { % (#tick/tack) | - : define /taproc for use in SetVec 1 x div /tistep x def /taproc { 0 tistep .999 { tiputs } for } def } def /taproclog { % (#ticks/tacks) | - : define /taproc for use in SetVec dup 3 gt { pop /taproc { 1 1 9 { log tiputs } for } def }{ dup 1 gt { pop /taproc { 0 tiputs 2 log tiputs 5 log tiputs } def }{ dup 0 gt { pop /taproc { 0 tiputs } def }{ neg taproclin } ifelse } ifelse } ifelse } def /SetVec { % tafro tatoo nta /vector | - : set /vector 4 1 roll /nta x def /tatoo x def /tafro x def /tastep tatoo tafro sub nta 1 sub div def [ 0 1 nta { tastep mul tafro add /taloop x def taproc exec } for ] def } def % set tick array - user commands /SetTicVecLin { taproclin /TicVec SetVec } def /SetTicVecLog { taproclog /TicVec SetVec } def % set tack-and-number array /SetTacVec { % [ pos {label} pos {label} ... ] | - /TacVec x def } def % define axes % note on angles : 0 = x-axis, 90 = y-axis /OneAxx { % fro to xpos ypos aang tang | - : presets for Axx, Tic, Tac, Num % store arguments /tAng x def /aAng x def /yPos x def /xPos x def /aTo x def /aFro x def % set constants /xTicLen tAng cos xyTicLen mul def /yTicLen tAng sin xyTicLen mul def /xTacLen tAng cos xyTacLen mul def /yTacLen tAng sin xyTacLen mul def /xAng aAng cos def /yAng aAng sin def /aMean aFro aTo add 2 div def } def % draw axis (with parameters preset by OneAxx or ArrAxx) /Axx { % - | - linsetAxx gsave xPos yPos offset mmscale aAng rotate % draw a line aFro 0 np mv aTo 0 li st grestore } def % draw ticks (positions given by SetTicVec, parameters preset by OneAxx/..) /Tic { % - | - : draw tick as defined in TicProc linsetTic TicVec { dup dup aFro lt x aTo gt or {pop} {TicProc} ifelse } forall } def /TicProc { % aPos | - : default procedure to plot one tick np xPos yPos xym mv dup xAng mul x yAng mul xym rm % eat argument, go to start pos. xTicLen yTicLen rl st } def /xGric { % yFro yTo | - : draw a grid line (instead of an x tick) linsetGri TicVec { 3 copy dup 5 -1 roll aFro lt x aTo gt or {pop pop pop} { dup % y1 y2 x x 4 -1 roll xym np mv % y2 x x xym li st } ifelse } forall pop pop } def /yGric { % xFro xTo | - : draw a grid line (instead of an y tick) linsetGri TicVec { 3 copy dup 5 -1 roll aFro lt x aTo gt or {pop pop pop} { dup % x1 x2 y y 4 -1 roll x xym np mv % x2 y xym li st } ifelse } forall pop pop } def % draw tacks (positions given by SetTacVec, parameters preset by OneAxx/..) /TacExe { % Proc | - % Execute Proc for all pairs of elements of TacVec % (but only if inside aFro..aTo) /TacProc x def /ispair true def % toggle: take pos, take label, take pos, take label ... TacVec { ispair { /aPos x def /ispair false def } { aPos dup aFro lt x aTo gt or {pop} {TacProc} ifelse /ispair true def } ifelse } forall } def /Tac { linsetTac { pop xPos yPos xym mv aPos dup xAng mul x yAng mul xym rm xTacLen yTacLen rl st } TacExe } def % special tack routines, only for rectangular axes /xTacC { % : centered tack on x axis linsetTac { pop aPos xm yPos ym txllen 2 div sub np mv 0 txllen rl st } TacExe } def /xGrid { % : rule instead of tack on x axis linsetTac { pop aPos xm np yPos ym mv 0 10 xym rl st } TacExe } def /yTacC { % : centered tack on y axis linsetTac { pop xPos xm tyllen 2 div sub aPos ym np mv tyllen 0 rl st } TacExe } def /yGrid { % : rule instead of tack on low y axis linsetTac { pop aPos ym np xPos xm x mv 10 0 xym rl st } TacExe } def % draw numbers (pos-txt pairs given by SetTacVec) /Num { % Generic but useless. Adjust for your application. setnum fontheight ymm div yDisRel mul tAng sin mul /yDist x def { dup textW xDisRel mul tAng cos mul /xDist x def xPos aPos xAng mul add xDist sub yPos aPos yAng mul add yDist sub 3 2 roll textCM } TacExe } def /setnumDisRel { % xDisRel yDisRel | - : adjust just a little bit /yDisRel x def /xDisRel x def } def 1.2 1.2 setnumDisRel % default setting % explicit Num routines for rectangular case /xNumL { % : numbers on low x axis setnum { fontheight ymm div % conversion -> user_scale dup /xNumHeightL x def -.6 mul yPos add aPos x 3 2 roll textCT } TacExe } def /xNumH { % : numbers on high x axis setnum { fontheight ymm div % conversion -> user_scale dup /xNumHeightH x def .6 mul yPos add aPos x 3 2 roll textCB } TacExe } def /yNumL { % : numbers on low y axis setnum { fontsize -.3 mul xmm div xPos add aPos 3 2 roll textRM xwidth dup yNumLengthL gt {/yNumLengthL x def} {pop} ifelse } TacExe } def /yNumLD { % : calculate only yNumLength (used for adjustement) setnum { textW dup yNumLengthL gt {/yNumLengthL x def} {pop} ifelse } TacExe } def /yDumL { % {(..)} yDumL : compare yNumLength with one arg (used for adjustement) setnum textW dup yNumLengthL gt {/yNumLengthL x def} {pop} ifelse } def /yNumH { % : numbers on high y axis setnum { fontsize .3 mul xmm div xPos add aPos 3 2 roll textLM xwidth dup yNumLengthH gt {/yNumLengthH x def} {pop} ifelse } TacExe } def /yNumHD { % : calculate only yNumLength (used for adjustement) setnum {textW dup yNumLengthH gt {/yNumLengthH x def} {pop} ifelse } TacExe } def /yDumH { % {(..)} yDumH : compare yNumLength with one arg (used for adjustement) setnum textW dup yNumLengthH gt {/yNumLengthH x def} {pop} ifelse } def % draw labels /xCL { % xlabel | - ; plots coordinate name below the x-axis. setlab aMean xNumHeightL xNumHeightRel neg mul 3 -1 roll textCT } def /xCH { % xlabel | - ; plots coordinate name above the x-axis. setlab aMean xNumHeightH xNumHeightRel mul 10 add 3 -1 roll textCB } def /yCL { % ylabel | - ; plots coordinate name to the left of the y-axis. gsave setlab yNumLengthL neg fontsize -.85 mul add % yNumLengthL calculated in yN aMean ym translate 0 0 mv 90 rotate 0 x 0 x textCB grestore } def /YCH { % ylabel xpos | - ; plots coordinate name to the right of a vertical axis gsave setlab yNumLengthH fontsize .85 mul add x xm add aMean ym translate 0 0 mv 90 rotate 0 x 0 x textCT grestore } def /yCH { 10 YCH } def % ylabel | - ; plots coordinate name to the right of the y-axis. /yCF { % ylabel | - ; plots coordinate name *falling* right of the y-axis. gsave setlab yNumLengthH fontsize .85 mul add 10 xm add aMEan ym translate 0 0 mv -90 rotate 0 x 0 x textCB grestore } def /knautschy { % x0 y0 y_knau y_tot knautschy - : insert an S in dived y-axis % the total height of the generated object is y_tot % of which y_knau(.le. y_tot) is for the real knautsch, % the remainder is for vertical prolongations. x ym 4 div dup /tmpy x def 5 sqrt mul /tmpx x def /tmpa x ym tmpy 4 mul sub 2 div def np ym x xm x mv 0 tmpa rl tmpx tmpy rl tmpx -2 mul tmpy 2 mul rl tmpx tmpy rl 0 tmpa rl st } def /separy { % x0 y0 sep lng ang lin - : insert an // in dived y-axis setline /spang x def /splng x def /spsep x def 2 copy spsep sub gsave offset spang rotate splng -.5 mul fm 0 np mv splng fm 0 rl st grestore spsep add gsave offset spang rotate splng -.5 mul fm 0 np mv splng fm 0 rl st grestore } def %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %% Data Plotting (Symbols and Curves) %% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %% Initializations: % asymmetric error bars? /err_asy false def % overwrite this if data are quadruples x y d- d+ %% Presets: % global preset /SymGSet { % sradglo slinglo serrglo | - /serrglo x def % plot error bars? 0=never, 1=always, 2=as_given_in_pset /slinglo x def % symbol linewidth multiplier /sradglo x def % symbol size multiplier } def %% Retrieve presets from style array: /pstyle { pStyles setstyle } def /cstyle { cStyles setstyle } def /setstyle { % chosen_number array | - : set p or c as predefined in array. dup length % i A n 3 2 roll % A n i dup 0 le { pop pop pop ostyle % chosen_number<=0 means: don't plot } { 1 sub x % A i-1 n mod get % A(i-1) exec } ifelse } def %% Set plot symbol: /pset { % styp sfill serr srad slin | - % arg -> symbol linewidth /slin x slinglo mul def % arg -> symbol size /srad x fm 0.16 mul sradglo mul def % arg -> plot error bar? 2 serrglo ne { pop serrglo } if % if (serrglo=2) use serr else use serrglo /plot_errorbar x 1 eq { { errorbar } } { { pop pop pop pop } } ifelse def % arg -> fill the symbol? (0=open, 1=full, 2=colored_with_black_border) /sfill x def % adjust srad: it's the _outer_ radius % TROUBLE sfill 1 ne {/srad srad slin fm pt sub def} if % arg -> symbol type /ps {ps_nil} def % default: don't plot (maybe we only want an error bar) dup 1 eq {/ps {ps_square} def} if dup 2 eq {/ps {ps_diamond} def} if dup 3 eq {/ps {ps_circle} def} if dup 4 eq {/ps {ps_triangle} def} if dup 5 eq {/ps {ps_cedez} def} if dup 6 eq {/ps {ps_eieruhr} def} if dup 7 eq {/ps {ps_valve} def} if dup 8 eq {/ps {ps_tfwd} def} if dup 9 eq {/ps {ps_tbwd} def} if dup 10 eq {/ps {ps_pentagram} def} if dup 11 eq {/ps {ps_plus} def} if dup 12 eq {/ps {ps_cross} def} if dup 13 eq {/ps {ps_star} def} if dup 14 eq {/ps {ps_pentagon} def} if dup 15 eq {/ps {ps_horiz} def} if dup 16 eq {/ps {ps_verti} def} if pop % /t { % x y d[- d+] | - : plot a symbol and eventually an error bar. err_asy not { dup } if 4 copy pop pop plot_symbol plot_errorbar } bind def /ti { t } bind def /tf { t black } bind def } def %% Set curve: /lset { % lwidth dashes | - 0 setdash dup 0 gt { pt fm setlinewidth % pop error bar and convert frame coord -> paper coord /txy { err_asy { pop } if pop xym } def % x y d[- d+] | x' y' % commands to plot points (can be overwritten by nopoints): /ti { np txy mv } def % x y d[- d+] | - : start curve /t { txy li } def % x y d[- d+] | - : continue curve /tf { txy li st } def % x y d[- d+] | - : terminate and plot curve } { ostyle } ifelse } def %% Plot nothing: /ostyle { % - | - /ti { nopoint } def /t { nopoint } def /tf { nopoint } def } def /nopoint { % x y d[- d+] | - pop pop pop err_asy { pop } if } def %% Plot an asymmetric vertical error bar: /errorbar { % x y d- d+ | - gsave slin setline 3 copy pop pop dup 0 gt x 10 lt and { 4 copy x pop add 10. 2 copy gt { x } if pop ym x xm x 2 copy x .05 sub x np mv .1 0 rl st np mv pop sub 0. 2 copy lt { x } if pop ym x xm x 2 copy lineto st x .05 sub x np mv .1 0 rl st } { pop pop pop pop } ifelse grestore } def %% Plot a data symbol: /plot_symbol { % x y | - gsave offset srad dup scale slin srad div setline % factor 1/srad compensates "scale" ps % the actual plot symbol, defined by 'pset' grestore } def /fill_symbol { sfill dup 0 eq { pop st } { 1 eq { fill } { gsave fill grestore gsave black st grestore } ifelse } ifelse } def %% The different symbols, designed for unit area (no arguments): /ps_nil { } bind def /ps_square { .5 .5 np mv 0 -1 rl -1 0 rl 0 1 rl cp fill_symbol } bind def /ps_diamond { gsave 45 rotate ps_square grestore } bind def /ps_circle { 0 0 np .564 0 360 arc cp fill_symbol } bind def /ps_triangle { .77 dup dup 90 pol2xy np mv 210 pol2xy li 330 pol2xy li cp fill_symbol } bind def /ps_cedez { gsave 180 rotate ps_triangle grestore } bind def /ps_tfwd { gsave 30 rotate ps_triangle grestore } bind def /ps_tbwd { gsave 210 rotate ps_triangle grestore } bind def /ps_eieruhr { -.7 -.7 np mv .7 -.7 li -.7 .7 li .7 .7 li cp fill_symbol } bind def /ps_valve { gsave 90 rotate ps_eieruhr grestore } bind def /ps_pentagram { .8 dup dup dup dup 90 pol2xy np mv 234 pol2xy li 18 pol2xy li 162 pol2xy li 306 pol2xy li cp fill_symbol } bind def /ps_pentagon { .8 dup dup dup dup 18 pol2xy np mv 90 pol2xy li 162 pol2xy li 234 pol2xy li 306 pol2xy li cp fill_symbol } bind def /ps_plus { gsave 45 rotate ps_cross grestore } bind def /ps_cross { .5 .5 np mv -1 -1 rl st -.5 .5 np mv 1 -1 rl st } bind def /ps_star { .7 dup 0 pol2xy np mv 180 pol2xy li st .7 dup 120 pol2xy np mv 300 pol2xy li st .7 dup 240 pol2xy np mv 60 pol2xy li st } bind def /ps_horiz { -.7 0 np mv 1.4 0 rl st } bind def /ps_verti { 0 -.7 np mv 0 1.4 rl st } bind def %% Set column plotting (use this instead of pset) /setcolumn{ % shift width exec | % % usage: 0 .2 { gsave { .5 setgray fill } grestore cp } setcolumn /colexec x def /colwidth x xm def /colshift x xm def /t { pop xym np x colshift add colwidth 2 div sub dup 3 2 roll mv colwidth 0 rl colwidth add 0 li colwidth neg 0 rl cp colexec } def /ti { t } bind def /tf { t black } bind def } def %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %% 2D plots %% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% /t2d { icCol rect fill black } def /t2p { icCol 0 t black } def /ColorLegend { % - | - [plot color legend to rectangle hxlow hxhig 0 10] /ncol 100 def 1 1 ncol { dup ncol div 10 mul icCol dup ncol div 10 mul x 1 sub ncol div 10 mul hxlow hxhig 4 2 roll rect fill } for } def /hColorLegend { % ditto, horizontally, to rectangle 0 10 hylow hyhig /ncol 100 def 1 1 ncol { dup ncol div 10 mul icCol dup ncol div 10 mul x 1 sub ncol div 10 mul hylow hyhig rect fill } for } def % Usage: % hColorLegend % hylow hyhig 0 0 90 0 OneAxx Axx % hylow hyhig 10 0 90 180 OneAxx Axx % 0 10 0 hyhig 0 90 OneAxx Axx Tic Tac % 0 10 0 0 0 90 OneAxx Axx Tic Tac xNumL % {(intensity)} xCL %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %% Boxes %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% /rect { % xl xh yl yh | - [path -> rectangle] ym /qqyh x def ym /qqyl x def xm /qqxh x def xm /qqxl x def np qqxl qqyl mv qqxh qqyl li qqxh qqyh li qqxl qqyh li cp } def /oval { % xl xh yl yh dr | - [path -> oval] fm /qqdr x def ym /qqyh x def ym /qqyl x def xm /qqxh x def xm /qqxl x def qqxl qqyl qqdr add np mv qqxl qqyh qqdr sub li qqxl qqdr add qqyh qqdr sub qqdr 180 90 arcn qqxh qqdr sub qqyh li qqxh qqdr sub qqyh qqdr sub qqdr 90 0 arcn qqxh qqyl qqdr add li qqxh qqdr sub qqyl qqdr add qqdr 0 -90 arcn qqxl qqdr add qqyl li qqxl qqdr add qqyl qqdr add qqdr -90 -180 arcn cp } def %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %% Motifs %% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% /dot { % x y siz 0 360 np arc cp fill } def %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %% List %% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% /NewList { % xins yins size advance NewList - /nl_advance x def setown /nl_yins x def /nl_xins x def /nl_yorig nl_yins def /nl_xshift fontsize xmm div .9 mul def /nl_xrline 0.33 def /nl_ystep fontheight ymm div nl_advance mul def /newline { /nl_yins nl_yins nl_ystep sub def } def /fracline { % frac | - fontheight ymm div nl_advance mul mul /nl_yins x nl_yins x sub def } def } def /newlist { 1.65 NewList } def /nlbox { % width | xl xh yl yh nl_xins add nl_xins fontwidth .4 mul sub x nl_yins nl_ystep add fontheight 1.2 mul sub nl_yorig fontheight 1.2 mul add } def /TxLine { % text | - nl_xins nl_yins 3 -1 roll textLM newline } bind def /TxCLine { % text | - nl_xins nl_yins 3 -1 roll textCM newline } bind def /PtTxLine { % pstyle text | - x pstyle nl_xins nl_xshift .5 mul add nl_yins 0 t black nl_xins nl_xshift 1.5 mul add nl_yins 3 2 roll textLM newline } bind def /PttttTxLine { % pstyle text | - %% chain of very small symbols x pstyle nl_xins nl_xshift .10 mul add nl_yins 0 t nl_xins nl_xshift .26 mul add nl_yins 0 t nl_xins nl_xshift .42 mul add nl_yins 0 t nl_xins nl_xshift .58 mul add nl_yins 0 t nl_xins nl_xshift .74 mul add nl_yins 0 t nl_xins nl_xshift .90 mul add nl_yins 0 t black nl_xins nl_xshift 1.5 mul add nl_yins 3 2 roll textLM newline } bind def /PtPtCvTxLine { % pstyle pstyle cstyle text | - 4 3 roll pstyle nl_xins nl_yins 0 t 3 2 roll pstyle nl_xins nl_xshift add nl_yins 0 t x cstyle nl_xins nl_xshift 2 mul add dup dup nl_xshift nl_xrline mul sub nl_yins 0 ti nl_xshift nl_xrline mul add nl_yins 0 tf nl_xshift add nl_yins 3 2 roll black textLM newline } bind def /PtCvTxLine { % pstyle cstyle text | - 3 2 roll pstyle nl_xins nl_yins 0 t x cstyle nl_xins nl_xshift 1 mul add dup dup nl_xshift -.33 mul add nl_yins 0 ti nl_xshift 0.33 mul add nl_yins 0 tf nl_xshift add nl_yins 3 2 roll black textLM newline } bind def /PtPtTxLine { % pstyle pstyle text | - 3 2 roll pstyle nl_xins nl_yins 0 t x pstyle nl_xins nl_xshift add nl_yins 0 t black nl_xins nl_xshift 2 mul add nl_yins 3 2 roll textLM newline } bind def /CvTxLine { % cstyle text | - x cstyle nl_xins fontsize xmm div nl_xrline mul 0 mul sub nl_yins 0 ti nl_xins fontsize xmm div nl_xrline mul 3 mul add nl_yins 0 tf black nl_xins nl_xshift 1.5 mul add nl_yins 3 2 roll textLM newline } bind def /Cv2TxLine { % cstyle text | - x cstyle nl_xins fontsize xmm div nl_xrline mul sub nl_yins 0 ti nl_xins fontsize xmm div nl_xrline mul add nl_xshift add nl_yins 0 tf black nl_xins nl_xshift 2 mul add nl_yins 3 2 roll textLM newline } bind def /PCTxLine { % pstyle(with plset) text | - x pstyle nl_xins fontsize xmm div nl_xrline 2 mul mul sub nl_yins 0 ci nl_xins fontsize xmm div nl_xrline 2 mul mul add nl_yins 0 cf nl_xins yins 0 t black nl_xins fontsize xmm div 1.9 mul % instead of xshift add nl_yins 3 2 roll textLM newline } bind def /infSet { % oooinfo | - : set whether(1) or not(0) to plot info block /oooinfo x def } def %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %% Arrows %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% /pfeilangle 36.87 def /pfeilspitze { % x[local] y[local] rot siz % draw with current linestyle, as set e.g. by linsetAxx x 4 2 roll % siz rot x y gsave xym translate 180 add rotate dup dup dup [] 0 setdash pfeilangle cos mul x pfeilangle sin mul np mv 0 0 li pfeilangle cos mul x pfeilangle sin neg mul li st grestore } def /pfeiL { % (arrow anchored at base) x y rot siz len gsave dup xm x ym mul sqrt % (scale len) 5 3 roll xym translate % (origin at base) rot siz len 3 2 roll rotate % (draw rightwards) siz len dup 0 translate % (origin at head) siz len x 0 0 0 4 3 roll pfeilspitze % len 0 0 np mv neg 0 li st grestore } def /Pfeil { % (arrow anchored at head) x y rot siz len dup xm x ym mul sqrt 5 copy pop pfeilspitze x pop x 4 2 roll % len rot x y gsave xym translate 180 add rotate 0 0 np mv 0 li st grestore } def /pfeil { % xi xf yi yf siz gsave 5 1 roll 4 copy 4 1 roll pop x pop x offset sub 3 1 roll sub x 2 copy x atan 180 add 3 1 roll 0 0 np mv li st x 0 0 4 2 roll pfeilspitze grestore } def /bemasz { % x y L ang text | - %% precede by '24 setown 1 [] lset /pfeilangle 90 def' gsave 5 3 roll offset % consumes x and y x rotate % consumes ang | L text dup textw .5 mul fontheight .4 mul add /bmszDT x def % => half text width 0 0 3 2 roll textCM % L .5 mul /bmszDX x def % => half bemasz length bmszDX 0 0 fontheight .67 mul bmszDX bmszDT sub Pfeil bmszDX neg 0 180 fontheight .67 mul bmszDX bmszDT sub Pfeil grestore } def %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %% Text macros %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% /Celsius { showif (\26x)g(C) showif } bind def /hbar { showif (h) 1.2 .66 { currentpoint fontheight .11 mul setline np mv fontheight dup .8 mul x .3 mul rl st () } build } bind def %% for neutron scattering: /hbarw { hbar () grec (w) endgr } bind def /wbar { grec (w) endgr ( / 2) grec (p) endgr } bind def /taumean { () (\341t\361) g } bind def /Sqw { showif (S\(q,) grec (w) endgr (\)) showif } bind def /Sqn { showif (S\(q,) grec (n) endgr (\)) showif } bind def /SQw { showif (S\(Q,) grec (w) endgr (\)) showif } bind def /Sttw { showif (S\(2) grec (q) endgr (,) grec (w) endgr (\)) showif } bind def /Sttn { showif (S\(2) grec (q) endgr (,) grec (n) endgr (\)) showif } bind def /Xqw { grec (c) endgr (''\(q,) grec (w) endgr (\)) showif } bind def /Xqn { grec (c) endgr (''\(q,) grec (n) endgr (\)) showif } bind def /ueV{ grec (m) endgr (eV) showif} bind def /inueV { showif (\() grec (m) endgr (eV\)) showif } bind def /inmeVr { showif (\(meV) supsc (-1) endsc (\)) showif } bind def /inueVr { showif (\() grec (m) endgr (eV) supsc (-1) endsc (\)) showif } bind def /inGHzr { showif (\(GHz) (-1) sp (\)) showif } def /inDeg { showif (\() (\260)g (\)) showif } def /Angstr { showif (\305) showif } bind def /Angr { showif (\305) supsc (-1) endsc } bind def /inAngr { showif (\() Angr (\)) showif } bind def /Angrr { showif (\305) supsc (-2) endsc } bind def /inAngrr { showif (\() Angrr (\)) showif } bind def /wmin {grec (w) endgr () subsc (min) endsc} def /winpi { grec (w) endgr ( / 2) grec (p) endgr } def end % WuGdict... %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %% Mark "ewu", the end of the wups.. macro definition file %% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% WuGdict24a begin 7 dup autolabel defsiz 1 dup stdred .5 -25 setnewpage newpage Resets 24 setown .5 setgray { 0 1 2 { pop { 0 1 2 { pop np 0 0 .3 0 360 arc cp fill 5.3 1.7 offset } for } G .5 4.8 offset } for } G siemensred 3 [] lset 0 0 17.78 .4 5.566 pfeiL 4.6 2.7 {(a)} textCM 0 0 84.05 .4 4.826 pfeiL 1.6 4.4 {(b)} textCM siemensblue 1 [] lset 0 0 0 .5 12.6 pfeiL 13.1 0 {(x)} textLM 0 0 90 .5 13 pfeiL 0 13.5 {(y)} textCB siemensgreen 2 [] lset np 0 0 4. 0 17.78 arc st 4.5 .7 {()(x)g()} textLM np 0 0 1.7 17.78 84.05 arc st 1.5 1.9 {()(a)g()} textCM showpage