xsize=8
ysize=6.7
size xsize ysize

begin texpreamble
    % set fonts used for text and maths to Palatino
    \usepackage{mathpazo}
    \renewcommand{\familydefault}{ppl}
    \usepackage{upgreek}
    %\usepackage[load=abbr]{siunitx}
    %\usepackage{bm}
end texpreamble

pt=0.0352777778 ! 1 postscript point

set font texcmr
set hei 10*pt

set lstyle 3
set lwidth 1*pt
set color rgb(0.7,0.7,0.7)

! pyz
amove 0 2.94
bitmap "pyz.png" 557/150 421/150
! dashed lines
amove 557/300 2.0
rline 0 0.9
rmove 0 3.8
rline 0 -0.9

amove 4.2 1.8
bitmap "pyo.png" 557/150 704/150
amove 4.2+557/300 1
rline 0 0.8

set color black

amove 0.2 6
text \tex{(a)}
amove 4.3 6
text \tex{(b)}


! crystal structure key
displacex=0.6  !to move text away from atom horizontally
displacey=0.13 !to line up atom key pic and text vertically
xstart=1.6
xdisp=1.25
ytop=0.3
amove xstart+0.125 ytop+0.125
bitmap "sphere-H.png" 0.25 0.25
amove xstart+displacex ytop+displacey
text \tex{H}
amove xstart+1*xdisp ytop
bitmap "sphere-C.png" 0.5 0.5
amove xstart+1*xdisp+displacex ytop+displacey
text \tex{C}
amove xstart+2*xdisp ytop
bitmap "sphere-N.png" 0.5 0.5
amove xstart+2*xdisp+displacex ytop+displacey
text \tex{N}
amove xstart+3*xdisp ytop
bitmap "sphere-O.png" 0.5 0.5
amove xstart+3*xdisp+displacex ytop+displacey
text \tex{O}