scaxis.cwp.lib
来自「su 的源代码库」· LIB 代码 · 共 27 行
LIB
27 行
SCAXIS - compute a readable scale for use in plotting axesscaxis compute a readable scale for use in plotting axesFunction Prototype:void scaxis (float x1, float x2, int *nxnum, float *dxnum, float *fxnum);Input:x1 first x valuex2 second x valuenxnum desired number of numbered valuesOutput:nxnum number of numbered valuesdxnum increment between numbered values (dxnum>0.0)fxnum first numbered valueNotes:scaxis attempts to honor the user-specified nxnum. However, nxnumwill be modified if necessary for readability. Also, fxnum and nxnumwill be adjusted to compensate for roundoff error; in particular, fxnum will not be less than xmin-eps, and fxnum+(nxnum-1)*dxnum will not be greater than xmax+eps, where eps = 0.0001*(xmax-xmin).xmin is the minimum of x1 and x2. xmax is the maximum of x1 and x2.Author: Dave Hale, Colorado School of Mines, 01/13/89
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?