Chapter 4. Tracé de graphiques

Table of Contents

Tracé de lignes
Courbes paramétriques
Champ de directions
Champ de vecteurs
Tracé de surfaces

Le tracé de graphiques n'est disponible que dans la version graphique GNOME. Tous les tracés accessibles à partir de l'interface graphique sont disponibles à partir de la fenêtre Création de graphiques. Vous pouvez accéder à cette fenêtre, soit en cliquant sur le bouton Tracer de la barre d'outils ou en sélectionnant Tracer dans le menu Calculateur. Vous pouvez également accéder aux fonctionnalités de tracer en utilisant les fonctions de tracé du langage GEL. Consultez Chapter 5, Fondamentaux GEL pour apprendre comment saisir des expressions compréhensibles par Genius.

Tracé de lignes

To graph real-valued functions of one variable, open the Create Plot window. You can also use the LinePlot function on the command line (see its documentation). And by the words line plot, we mean plots in the plane, as opposed to surface plots, which are in three dimensions.

Une fois que vous avez cliqué sur le bouton Tracer, une fenêtre contenant des onglets apparaît. Vous devez être dans l'onglet Tracé de lignes et dans celui-ci, vous devez être dans l'onglet Fonctions / Expressions (consultez Figure 4.1, “Fenêtre Création de graphiques”).

Figure 4.1. Fenêtre Création de graphiques

Shows the line plotting window.

Type expressions with x as the independent variable into the textboxes. Alternatively you can give names of functions such as cos rather then having to type cos(x). You can graph up to ten functions. If you make a mistake and Genius cannot parse the input it will signify this with a warning icon on the right of the text input box where the error occurred, as well as giving you an error dialog. You can change the ranges of the dependent and independent variables in the bottom part of the dialog. In the boxes for the ranges, simple expressions are allowed, such as 2*pi or 10^3. The y (dependent) range can be set automatically by turning on the Fit dependent axis checkbox. The names of the variables can also be changed. Pressing the Plot button produces the graph shown in Figure 4.2, “Fenêtre contenant une courbe”.

The variables can be renamed by clicking the Change variable names... button, which is useful if you wish to print or save the figure and don't want to use the standard names. Finally you can also avoid printing the legend and the axis labels completely, which is also useful if printing or saving, when the legend might simply be clutter.

Figure 4.2. Fenêtre contenant une courbe

The graph produced.

À partir de là, vous pouvez imprimer le graphe, créer une version postscript encapsulé ou PNG du graphe ou modifier le zoom. Si l'axe dépendant n'a pas été configuré correctement, Genius peut l'avoir ajusté en cherchant les extrema des fonctions tracées.

Pour tracer à partir de la ligne de commande, consultez la documentation de la fonction LinePlot.