next up previous contents index
Next: List of graphic commands Up: Manual Previous: Strings   Contents   Index


Graphic representation of functions

The command funct_plot must be used to plot functions (see 3.7).


Example : The following instructions will plot the function $sin(16x)$ for $x$ between $0$ and $1$ on the PS-file t.ps of the result directory :


defxr_d xr 1 1001
fix_xr_d xr 0 .001
defunc_d F xr
fill_func F sin(16*x)
defframe f
frame f -.1 .95 -1.1 1.1 .2 .2
defgraph_PS t t.ps portrait
setframe t f
defcolor red
color red 1 0 0
setcolor t red
funct_plot F t f 0 1 250
destroy t


The file t.ps is represented on figure 6.



2009-11-12