1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49
|
<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>
Plotting support is only available in the graphical GNOME version.
All plotting accessible from the graphical interface is available from
the <span class="guilabel">Create Plot</span> window. You can access this window by either clicking
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>
menu. You can also access the plotting functionality by using the
<a class="link" href="ch11s20.html" title="Plotting">plotting
functions</a> of the GEL language. See
<a class="xref" href="ch05.html" title="Chapter 5. GEL Basics">Chapter 5, <i>GEL Basics</i></a> to find out how to
enter expressions that Genius understands.
</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>
To graph real-valued functions of one variable, open the <span class="guilabel">Create Plot</span>
window. You can also use the
<a class="link" href="ch11s20.html#gel-function-LinePlot"><code class="function">LinePlot</code></a> 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.
</p><p>
Once you click the <span class="guilabel">Plot</span> button, a window opens up with some notebooks in it.
You want to be in the <span class="guilabel">Function line plot</span> notebook
tab, and inside you want to be on the <span class="guilabel">Functions / Expressions</span> notebook tab.
See <a class="xref" href="ch04.html#lineplot-fig" title="Figure 4.1. Create Plot Window">Figure 4.1, “Create Plot Window”</a>.
</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>
Type expressions with <strong class="userinput"><code>x</code></strong> as
the independent variable into the textboxes. Alternatively you can give names of functions such as
<strong class="userinput"><code>cos</code></strong> rather then having to type <strong class="userinput"><code>cos(x)</code></strong>.
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 <strong class="userinput"><code>2*pi</code></strong> or <strong class="userinput"><code>10^3</code></strong>.
The <code class="varname">y</code> (dependent) range can be set automatically by turning on the <span class="guilabel">Fit dependent axis</span>
checkbox.
The names of the variables can also be changed.
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>.
</p><p>
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
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.
</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>
From here you can print out the plot, create encapsulated postscript
or a PNG version of the plot or change the zoom. If the dependent axis was
not set correctly you can have Genius fit it by finding out the extrema of
the graphed functions.
</p><p>
For plotting using the command line see the documentation of the
<a class="link" href="ch11s20.html#gel-function-LinePlot"><code class="function">LinePlot</code></a> function.
</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>
|