summaryrefslogtreecommitdiffstats
path: root/doc/kmplot/firststeps.docbook
blob: 5595ecbcbe64584597bc6f5a07af3d740fc725a9 (plain)
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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
<chapter id="first-steps">
<title>First Steps With &kmplot;</title>

<sect1 id="simple-function-plot">
<title>Simple Function Plot</title>

<para>
In the main toolbar there is a simple text box in which you can enter
a function expression. Simply enter:
<screen><userinput>x^2</userinput></screen> and press &Enter;.  This
will draw the plot of y=x^2 in the coordinate system. Enter another
expression in the text box like
<screen><userinput>5*sin(x)</userinput></screen> and another plot will
be added.
</para>

<para>Click on one of the lines you have just plotted. Now the cross
hair gets the color of the plot and is attached to the plot.  You can
use the mouse to move the cross hair along the plot.  In the status
bar at the bottom of the window the coordinates of the current
position is displayed. Note that if the plot touches the x-axis the
root will be displayed in the status bar, too.</para>

<para>Click the mouse again and the cross hair will be detached from
the plot.</para>
</sect1>

<sect1 id="edit-properties">
<title>Edit Properties</title>

<para>Let us make some changes to the function and change the color of
the plot.</para>

<para>You can edit all functions with the
<menuchoice><guimenu>Plot</guimenu><guimenuitem>Edit
Plots...</guimenuitem> </menuchoice> menu entry. A dialog appears
which lists all the functions that you have plotted.  Notice that
&kmplot; has automatically found a unique function name for your
expressions and completed the expression to a function
equation.</para>

<para>Select <guilabel>f(x)=x^2</guilabel> in the list. A double click
or pressing the <guibutton>Edit</guibutton> button will show you a
dialog window. Here you have access to a lot of options. Let us rename
the function and move the plot 5 units down. Change the function
equation to <screen><userinput>parabola(x)=x^2-5</userinput></screen>
</para>

<para>To select another color for the plot click into the
<guilabel>Color:</guilabel> box. Finally press
<guibutton>OK</guibutton> and your changes take effect in the
coordinate system.</para>

<note><para>All changes can be undone until you press
<guibutton>OK</guibutton> in the <guilabel>Edit Plots</guilabel>
dialog.</para>
</note>

</sect1>
</chapter>
<!--
Local Variables:
mode: sgml
sgml-minimize-attributes:nil
sgml-general-insert-case:lower
sgml-indent-step:0
sgml-indent-data:nil
sgml-parent-document:("index.docbook" "BOOK" "CHAPTER")
End:
-->