Wednesday, April 14, 2010

Generate publishable quality NMR spectrum by modifying Sparky plot ps file (2)

7, Change peak contour color
"/levelcolor n def" where n could be 0(black), 1(white), 2(gray), 3(red), 4(green) 5(blue), 6(yellow), 7(magenta) 8(cyan) etc.

8, To combine two or more postscript files, simply comment the showpage line and add showpage at the end of the very last postscript file. The relative positions, sizes can be adjusted by modifying some numbers in the combined postscript file.

9, "pt" command from Sparky generate postscript file of the spectra. In order to overlap two or more sets data, ppm/cm should be identical also "rt" make sure all sets with the same ppm range.

10, Useful postscript language like
0.5 0.5 scale (change size)
-200 400 translate (translocation, change position)

0.5 setlinewidth
254 400 moveto 350 400 lineto stroke (draw lines)

11, to write label A, B, ... or any other annotations
gsave
/Helvetica findfont 24 scalefont setfont
-238 685 moveto (A) show
130 685 moveto (B) show
-238 455 moveto (new annotations) show
grestore

Use "gsave ...... grestore" often (make life easier)

No comments:

Post a Comment