找回密码
 马上注册

扫一扫,访问微社区

搜索
热搜: mestrenova
查看: 3042|回复: 2

How to Print a Spectrum with Thicker or Thinner Lines

[复制链接]
发表于 2006-11-17 19:22:13 | 显示全部楼层 |阅读模式
 

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.

回复

使用道具 举报

发表于 2009-1-16 23:22:25 | 显示全部楼层

看不明白,中文不好??

回复 支持 反对

使用道具 举报

发表于 2009-4-5 22:13:31 | 显示全部楼层
Admin的乾坤大挪法用的不错, 还是利害. 可不要用在俺的身上.
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 马上注册

本版积分规则

Archiver|手机版|中国核磁共振论坛

GMT+8, 2024-11-27 00:35

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

快速回复 返回顶部 返回列表