| 1 | <html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"><title>Chapter 4. Plotting</title><meta name="generator" content="DocBook XSL Stylesheets Vsnapshot"><link rel="home" href="index.html" title="Genius Manual"><link rel="up" href="index.html" title="Genius Manual"><link rel="prev" href="ch03s03.html" title="To Open and Run a Program"><link rel="next" href="ch04s02.html" title="Parametric Plots"></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><div class="navheader"><table width="100%" summary="Navigation header"><tr><th colspan="3" align="center">Chapter 4. Plotting</th></tr><tr><td width="20%" align="left"><a accesskey="p" href="ch03s03.html">Prev</a> </td><th width="60%" align="center"> </th><td width="20%" align="right"> <a accesskey="n" href="ch04s02.html">Next</a></td></tr></table><hr></div><div class="chapter"><div class="titlepage"><div><div><h1 class="title"><a name="genius-gel-plotting"></a>Chapter 4. Plotting</h1></div></div></div><div class="toc"><p><b>Table of Contents</b></p><dl class="toc"><dt><span class="sect1"><a href="ch04.html#genius-line-plots">Line Plots</a></span></dt><dt><span class="sect1"><a href="ch04s02.html">Parametric Plots</a></span></dt><dt><span class="sect1"><a href="ch04s03.html">Slopefield Plots</a></span></dt><dt><span class="sect1"><a href="ch04s04.html">Vectorfield Plots</a></span></dt><dt><span class="sect1"><a href="ch04s05.html">Surface Plots</a></span></dt></dl></div><p> |
| 2 | Plotting support is only available in the graphical GNOME version. |
| 3 | All plotting accessible from the graphical interface is available from |
| 4 | the <span class="guilabel">Create Plot</span> window. You can access this window by either clicking |
| 5 | on the <span class="guilabel">Plot</span> button on the toolbar or selecting <span class="guilabel">Plot</span> from the <span class="guilabel">Calculator</span> |
| 6 | menu. You can also access the plotting functionality by using the |
| 7 | <a class="link" href="ch11s20.html" title="Plotting">plotting |
| 8 | functions</a> of the GEL language. See |
| 9 | <a class="xref" href="ch05.html" title="Chapter 5. GEL Basics">Chapter 5, <i>GEL Basics</i></a> to find out how to |
| 10 | enter expressions that Genius understands. |
| 11 | </p><div class="sect1"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="genius-line-plots"></a>Line Plots</h2></div></div></div><p> |
| 12 | To graph real-valued functions of one variable, open the <span class="guilabel">Create Plot</span> |
| 13 | window. You can also use the |
| 14 | <a class="link" href="ch11s20.html#gel-function-LinePlot"><code class="function">LinePlot</code></a> function |
| 15 | on the command line (see its documentation). And by the words line plot, we mean plots in the plane, |
| 16 | as opposed to surface plots, which are in three dimensions. |
| 17 | </p><p> |
| 18 | Once you click the <span class="guilabel">Plot</span> button, a window opens up with some notebooks in it. |
| 19 | You want to be in the <span class="guilabel">Function line plot</span> notebook |
| 20 | tab, and inside you want to be on the <span class="guilabel">Functions / Expressions</span> notebook tab. |
| 21 | See <a class="xref" href="ch04.html#lineplot-fig" title="Figure 4.1. Create Plot Window">Figure 4.1, “Create Plot Window”</a>. |
| 22 | </p><div class="figure"><a name="lineplot-fig"></a><p class="title"><b>Figure 4.1. Create Plot Window</b></p><div class="figure-contents"><div class="screenshot"><div class="mediaobject"><img src="figures/line_plot.png" alt="Shows the line plotting window."></div></div></div></div><br class="figure-break"><p> |
| 23 | Type expressions with <strong class="userinput"><code>x</code></strong> as |
| 24 | the independent variable into the textboxes. Alternatively you can give names of functions such as |
| 25 | <strong class="userinput"><code>cos</code></strong> rather then having to type <strong class="userinput"><code>cos(x)</code></strong>. |
| 26 | You can graph up to ten functions. If you make a mistake and Genius cannot |
| 27 | parse the input it will signify this with a warning icon on the right of the text |
| 28 | input box where the error occurred, as well as giving you an error dialog. |
| 29 | You can change the ranges of the dependent and independent variables in the bottom |
| 30 | part of the dialog. In the boxes for the ranges, simple expressions are allowed, |
| 31 | such as <strong class="userinput"><code>2*pi</code></strong> or <strong class="userinput"><code>10^3</code></strong>. |
| 32 | The <code class="varname">y</code> (dependent) range can be set automatically by turning on the <span class="guilabel">Fit dependent axis</span> |
| 33 | checkbox. |
| 34 | The names of the variables can also be changed. |
| 35 | Pressing the <span class="guilabel">Plot</span> button produces the graph shown in <a class="xref" href="ch04.html#lineplot2-fig" title="Figure 4.2. Plot Window">Figure 4.2, “Plot Window”</a>. |
| 36 | </p><p> |
| 37 | The variables can be renamed by clicking the <span class="guilabel">Change variable names...</span> button, which is useful if you wish to print or save the figure and don't want to use the standard |
| 38 | names. Finally you can also avoid printing the legend and the axis labels completely, |
| 39 | which is also useful if printing or |
| 40 | saving, when the legend might simply be clutter. |
| 41 | </p><div class="figure"><a name="lineplot2-fig"></a><p class="title"><b>Figure 4.2. Plot Window</b></p><div class="figure-contents"><div class="screenshot"><div class="mediaobject"><img src="figures/line_plot_graph.png" alt="The graph produced."></div></div></div></div><br class="figure-break"><p> |
| 42 | From here you can print out the plot, create encapsulated postscript |
| 43 | or a PNG version of the plot or change the zoom. If the dependent axis was |
| 44 | not set correctly you can have Genius fit it by finding out the extrema of |
| 45 | the graphed functions. |
| 46 | </p><p> |
| 47 | For plotting using the command line see the documentation of the |
| 48 | <a class="link" href="ch11s20.html#gel-function-LinePlot"><code class="function">LinePlot</code></a> function. |
| 49 | </p></div></div><div class="navfooter"><hr><table width="100%" summary="Navigation footer"><tr><td width="40%" align="left"><a accesskey="p" href="ch03s03.html">Prev</a> </td><td width="20%" align="center"> </td><td width="40%" align="right"> <a accesskey="n" href="ch04s02.html">Next</a></td></tr><tr><td width="40%" align="left" valign="top">To Open and Run a Program </td><td width="20%" align="center"><a accesskey="h" href="index.html">Home</a></td><td width="40%" align="right" valign="top"> Parametric Plots</td></tr></table></div></body></html> |