next up previous contents index
Next: Geometry Up: Manual Previous: Graphic representation of functions   Contents   Index


List of graphic commands



clear name


Clears the graphic object name, which can be X for the X11 window, or an object which has been created by defgraph_PS... or defgraph_PNG... .




color ccc x1 x2 x3


Defines the color associated to the color object ccc. The parameters x1, x2, x3 are the RGB values (real numbers between 0 and 1).




dash name n


Defines the dash type of lines on the graphic object name. This command works only on the versions of func compiled with libplot. The integer n must be between 0 and 6. It corresponds to the line types defined in libplot :

0 : solid
1 : dotted
2 : dotdashed
3 : shortdashed
4 : longdashed
5 : dotdotdashed
6 : dotdotdotdashed




defcolor ccc


Defines a color object with name ccc. The corresponding color is black. Tochange it, the command color... must be used.




defframe fff


Defines a frame object called fff.




defgraph Typ name ccc w h

defgraph Typ name ccc XXX


Creates a graphic object of type Typ whose name is name, and the corresponding file with name ccc in the result directory.

The type can be ps or png. If funct is compiled with libplot the types gif and fig are also available. The size of the image is given by w (width) and h (height), for types png, gif and fig. For type ps, the option XXX (portait or landscape) can be given. If XXX is omitted, portait is assumed.




frame fff xmin xmax ymin ymax xtics ytics


Sets the parameters of the frame object fff.




funct_plot F xxx f xmin xmax n


Plots the function F on the graphic xxx, using the frame f, for $x$ between xmin and xmax, by using n values of $x$, equally spaced. All kinds of supported graphics can be used. If the function is complex, only the real part is plotted.



graphplot name x y


Plots a point on the graphic object name at coordinates x and y (in pixels). The point $(0,0)$ is the lower left corner of the picture.




graphplot_c name fff x y


Plots a point on the graphic object name at coordinates x and y with respect to the frame fff.




graphline name x y


Draws a line on the graphic object name from the current point to the point of coordinates x and y (in pixels).




graphline_c name fff x y


Draws a line on the graphic object name from the current point to the point of coordinates x and y (in pixels) with respect to the frame fff.




putstring name fff Pos XXX1...


Draws the strings XXX1,... on the graphic object name at the current point with respect to the frame fff, with position modifier Pos. The values of Pos can be -O, -E, -N, -S, -SO, -SE, -NO, -NE (cf. 3.5.4).




set_basic_colors


Defines the color objects red, blue, Lblue (ligthblue), black, green, violet, yellow and orange.




setclip xmin xmax ymin ymax


Sets the position of frames in graphic objects. This determines how they will bedrawn. The numbers xmin, xmax, ymin, ymax must be between 0 and 1. The default values for these parameters are 0.1, 0.9, 0.1, 0.9. Note




setcolor name ccc


Sets the color of the pen for the graphic object name. The color will be defined by the color object ccc. See the commands defcolor... and color...




setframe name fff


Draws the frame fff on the graphic object name.




title name fff XXX1,...


Draws the title given by the strings XXX1,... on graphic object name, with respect to the frame fff (cf. 3.5.4).




width n


This command defines the width of the lines drawn on graphics.



win n


This command works only if funct is compiled with libplot or g2. It defines the current X window. It is possible to use up to 6 windows for graphics (only one if funct is compiled with ggi or allegro). Hence n must be between 0 and 5. See also the command xclose




xclose n


This command works only if funct is compiled with libplot or g2. It closes the X window number n. It is possible to use up to 6 windows for graphics (only one if funct is compiled with ggi or allegro). Hence n must be between 0 and 5. See also the command win




next up previous contents index
Next: Geometry Up: Manual Previous: Graphic representation of functions   Contents   Index
2009-11-12