📄 plotexscale.c
字号:
/*--------------------------------------------------------------+| ENTROPIC PROCESSING, INC. || || This material contains proprietary software of Entropic || Processing, Inc. Any reproduction, distribution, or || publication without the the prior written permission of || Entropic Processing, Inc. is strictly prohibited. Any || public distribution of copies of this work authorized in || writing by Entropic Processing, Inc. must bear the notice || || "Copyright 1986 Entropic Processing, Inc." || |+---------------------------------------------------------------+| || plotscale -- find exact numbers for plot boundaries. || || John Shore, Entropic Processing, Inc. || A complete and ugly hack based on plotscale |+--------------------------------------------------------------*/#include <stdio.h>double pow (), log10 ();static char *sccs_id = "@(#)plotexscale.c 1.1 9/23/86 EPI";voidplotexscale (vmin, vmax, mindif, p_vmin, p_vmax, p_vtick, p_ndp)double vmin, vmax, mindif, *p_vmin, *p_vmax, *p_vtick;int *p_ndp;{ double diff = vmax - vmin, teno, div, adiff; int o, adj, nticks; if (diff < 0.0) diff = mindif; nticks = 4; div = teno / 2; div = diff / nticks; *p_vtick = div; *p_ndp = 0; return;}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -