FigureWhen plotting functions, the graph is plotted in a Figure. A Figure has the following sections: Menu, Toolbar, Graph and Property window. These sections, along with the Move, Zoom, and Trace modes, are described on this page.
You can read more about the available functions for plotting graphs on the page Plot.
MenuA Figure has the following menu.
ToolbarWith the first three buttons on the Toolbar you can select the graph mode: Trace, Move or Zoom. The button of the selected mode appears depressed. These three modes are explained above in the menu Mode.
The next three buttons on the Toolbar are to adjust the axes style. You can choose Normal, Boxed or None.
The last button is to show or hide the Property window. You can also change the visibility of the Propertywindow in the menu View, Properties.
GraphThe Graph is the area where the functions are plotted. In general you can plot a graph with the Plot function.
The function or functions are plotted in the graph. Axes, gridlines, and legend can also be rendered in the graph. You can change the visibility of these items in the Propertylist or in the menu View.
Plot(2*cos(x)) Plot done
MoveThere are two methods for moving the plotted area in the graph. The first is used by setting the figuremode to Move. You can select this mode in the toolbar or in the menu Mode. When you left click and drag your mouse inside the graph, the graph will move in response. The properties xMin, xMax, yMin and yMax will be adjusted in the propertylist.
When the figuremode is not set to Move, you can move the graph by holding <Ctrl> + <LeftMouseButton> down and dragging inside the graph. You can also use the quick keys <Ctrl> + <Arrow keys> to move the graph.
ZoomZooming the graph is similar to moving the graph. After setting the figuremode to Move, you can left click and drag your mouse inside the graph, which will cause the graph to zoom in response. To zoom horizontally, drag the mouse to the left to zoom out and to the right to zoom in. Similarly, you can zoom vertically by dragging the mouse vertically.
When you have any other mode selected, you can zoom the graph by dragging with <Ctrl> + <RightMouseButton>. You can also use the quick keys + and - to zoom the graph, or use <Ctrl> + <Scrollwheel>.
TraceWhen the Figuremode is set to Trace, you can trace the plotted functions by left clicking somewhere on the function. The cursor changes from an arrow to a hand when you move it over a function. The position of the tracepoint will be printed at the bottom left of the graph. The traced position is stored in xTrace and yTrace in the propertylist, where these values can be modified. In the workarea of SpeQ you can directly use the properties xTrace and yTrace in your expressions.
When using the left and right arrow keys, the tracepoint will follow the function. When you hold <Shift> down, you can move the tracepoint with small steps.
When you have multiple functions plotted, you can jump to another function by pressing the up or down arrow keys. If there's an intersection with another function or with an axis in the neighborhood of the tracepoint, the tracepoint will snap to that intersection. The tracepoint will also snap to maxima and minima of a function.
'Plot two functions Plot(x^2 - 3) Plot done Plot(Sin(x)) Plot done 'Now set the tracepoint to the right intersection 'of the two functions by clicking on the intersection 'You can then read out the position: xTrace xTrace = 1.979320147 yTrace yTrace = 0.917708243 'You can also change the tracepoint from within the workarea 'The tracepoint will snap to the other intersection if you 'choose it in the neighborhood. xTrace = -1.5 xTrace = -1.418310092 yTrace yTrace = -0.988396484
Context menuWhen you left-click somewhere a context menu will open with relevant options. Amongst others you can change graph mode (Trace, Move, Zoom). The first item in the context menu is for editing properties. For example when you left-click on a function, the first item in the context menu is "Edit function", and if you left-click on the Title you can choose "Edit Title", etc.
Besides using the context menu you can also double-click on the different parts in the graph to go to the specific controls where you can change the properties.
Property windowAll properties of a Figure are editable in the Property window. The Property window appears left from the graph in the Figure. It's also possible to adjust the properties from within the workarea of SpeQ.
You can read more about the Property window on the page Propertywindow.
See AlsoGraphs, Interface