📄 pswiggle.psplot.lib
字号:
PSWIGGLE - draw wiggle-trace with (optional) area-fill via PostScriptpsWiggle draw wiggle-trace with (optional) area-fill via PostScriptFunction Prototype:void psWiggle (int n, float z[], float zmin, float zmax, float zbase, float yzmin, float yzmax, float xfirst, float xlast, int fill);Inputs:n number of samples to drawz array to drawzmin z values below zmin will be clippedzmax z values above zmax will be clippedzbase z values between zbase and either zmin or zmax will be filledyzmin y-coordinate corresponding to zminyzmax y-coordinate corresponding to zmaxxfirst x-coordinate corresponding to z[0]xlast x-coordinate corresponding to z[n-1]fill = 0 for no fill > 0 for fill between zbase and zmax < 0 for fill between zbase and zmin +2 for fill solid between zbase and zmax grey between zbase and zmin -2 for fill solid between zbase and zmin grey between zbase and zmax SHADING: 2<= abs(fill) <=5 abs(fill)=2 light grey abs(fill)=5 blackNOTES:psWiggle reduces PostScript output by eliminating linetos whenz values are essentially constant. The tolerance for detecting constant" z values is ZEPS*(zmax-zmin), where ZEPS is a fraction defined below.A more complete optimization would eliminate all connected line segments that are essentially colinear.psWiggle breaks up the wiggle into segments that can be drawnwithout exceeding the PostScript pathlimit.Author: Dave Hale, Colorado School of Mines, 07/03/89Modified: Craig Artley, Colorado School of Mines, 04/13/92 Corrected dead trace bug. Now the last point of each segment is guaranteed to be drawn.MODIFIED: Paul Michaels, Boise State University, 29 December 2000 added fill=+/-2 option of solid/grey color scheme
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -