📄 scaxis.cwp.lib
字号:
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 + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -