home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC World Komputer 1996 February
/
PCWK0296.iso
/
sharewar
/
os2
/
grafika
/
splot
/
demo
/
tickdemo.spt
< prev
Wrap
Text File
|
1994-07-26
|
714b
|
35 lines
#include <splot.h>
main()
{
/* tick marks and tick label example */
abox(12,12,5,6);
ascale(XAXES,0,100);
ascale(YAXES,0,30);
/* default tick marks and labels */
tickmarks(BOTTOM);
ticklabel(BOTTOM);
gsave();
/* grid lines */
set(TICKLENGTH,12);
tickmarks(LEFT);
ticklabel(LEFT);
/* thick -ve ticks at specified positions */
set(LINEWIDTH,0.2);
set(TICKLENGTH,-0.3);
tickmarks(RIGHT,0,5,10,15,20,25,30);
set(LINEWIDTH,0.05);
set(TICKLMARG,0.5);
ticklabel(RIGHT,0,30);
grestore();
/* ticks by spacing and custom labels */
tickmarks(TOP,5);
ticklabel(TOP,0,"0",50,"5x10^1^",100,"10^2^");
}