<chapter id="first-steps">
<title>First Steps With &kmplot;</title>

<sect1 id="simple-function-plot">
	<title>Simple Function Plot</title>
	
	<para>
		In the sidebar on the left, there is the <guilabel>Create</guilabel> button with a drop down menu for creating new plots.
		Click on it, and select <guilabel>Cartesian Plot</guilabel>. The text box for editing the current equation will be focused. Replace the default text with
		<screen><userinput>y = x^2</userinput></screen>
		and press &Enter;.
		This will draw the plot of y = x<superscript>2</superscript> in the coordinate system.
		Clicking on the <guilabel>Create</guilabel> button again, select <guilabel>Cartesian Plot</guilabel>, and this time enter the text
		<screen><userinput>y = 5sin(x)</userinput></screen>
		to get another plot.
	</para>
	
	<para>Click on one of the lines you have just plotted. Now the crosshair
		becomes the color of the current plot and is attached to the it.  You can
		use the mouse to move the crosshair 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  horizontal axis the
		root will be displayed in the status bar, too.</para>
	
	<para>Click the mouse again and the crosshair 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>The <guilabel>Functions</guilabel> sidebar lists all the functions that you have plotted.
		If <guilabel>y = x^2</guilabel> isn't already selected, select it.
		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> and hit enter.
		To select another color for the plot, click the <guilabel>Color</guilabel> button in the section 
		<guilabel>Appearance</guilabel> at the bottom of the function sidebar and select a new color.
		<note>
			<para>All changes can be undone via <menuchoice><guimenu>Edit</guimenu><guimenuitem>Undo</guimenuitem> </menuchoice>.</para>
		</note>
	</para>
</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:
-->
