How to Print a Spectrum with Thicker or Thinner Lines. A new printing macro has been created here at the NMR Facility, thanks in a large part to Marty Berliner. This new macro allows you to control the line width of your spectra and other features such as the integrals and scale. The pagelw macro can be used as a replacement for the page macro. To generate output with thicker lines you issue all usual plotter commands (i.e. pl, pscale, pap, pirn, ppf...) and then conclude the print commands with pagelw. There are three ways to invoke the pagelw macro. They are: (1) Without any arguments In this mode, the pagelw macro will ask the user for the desired linewidth and then send the modified plot to the output device defined in the "plotter" variable. (2) With a linewidth argment In this mode, the syntax is pagelw(linewidth) where linewidth is an integer. The macro will then send the modified plot to the output device defined in the "plotter" variable. Example: pagelw(4) will generate a plot with lines 4 pixels wide. (3) With linewidth and plotfilename arguments. In this mode, the syntax of the command is pagelw(linewidth,'plotfilename'), where linewidth is an integer and plotfilename is a valid UNIX filename. The macro will write the modified plot file to 'plotfilename' in the current directory and will not generate any printed output. Use this form of the command when an EPS file is required for import into another program or for distilling to a PDF file. Example: pagelw(5,'wideline.eps') will generate a file named "wideline.eps" that contains the PostScript commands to generate a plot with lines five pixels wide. This plot file can be imported into any program that supports EPS files, and can be distilled to a PDF file with Adobe Acrobat Distiller or GhostScript. To obtain more information on this while you are at the console just type man('pagelw') and the manual entry will appear at the lower portion of your screen telling you about the macro. |