next up previous
Next: 2-d geometry Up: Geometry and graphics Previous: Geometry and graphics

Common features

The controls are common to 2-d, 3-d graphics or geometry. You can move left, right, up and down the window, redefine it using coordinates, zoom in and out, pause and restart an animation using the buttons and the M menu at the right of the graphic, or using the Graph menu. In 2-d, the coordinates of the mouse are displayed while it is in the graphic area. You can modify the visualization window with the mouse (drag will move, use the scroll button for centered zoom in/out, or select an area with the right mouse button for an area zoom in). In 3-d, you can rotate the representation along the current x, y, z axis with a mouse drag outside of the scene rendering, or by hitting the x,X, y,Y and z,Z key (if the focus is in the 3-d scene).

Note that the controls apply only to the visualization, not to the creation of graphic objects. For example, if you create a plot of a function, the discretisation parameters for this plot (e.g. minimal value for x) are fixed and will not change if you move the minimal visualisation value using the controls. You must recreate a graphical object if you did not choose correctly the parameters. For example if you run the command plot(sin(x)), the minimal value for computation of x will be the default value (Xmin from the Geo configuration, -10 by default). If you move the minimal value of x for visualization below Xmin, you will not see the plot there. To see the plot below Xmin, you would have to specify something like plot(sin(x),x=-20..0) and validate the commandline. This limitation does not apply to geometric objetcs (point, segments, lines and circles) which will always be drawn if they are visible.

A M menu is available below the controls (it's items are also available from the top Geo menu), it contains items to print and control the screen. You can export a graph to encapsulated postscript and to PNG (you must have the converting tools netpbm or ImageMagic installed, this should be installed by the Xcas installer under Windows. If they are not installed under Linux, run your software installer or open a Terminal and type
sudo apt-get install imagemagick
for Debian/Ubuntu distributions or
sudo yum install imagemagick
for Fedora-compatible distributions).

Title and axis legends must be part of the command(s) that generate the graph or geometry window. For example, try this on a commandline

f(t):=sin(t);title="Graph of f on a period", labels=["t","f(t)"],legend=["cm","m"], plot(f(t),t=-pi..pi,legend="f")


next up previous
Next: 2-d geometry Up: Geometry and graphics Previous: Geometry and graphics
giac documentation written by Bernard Parisse