Figure

When 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.

Figure overview

Back to top

Menu

Figure menu A Figure has the following menu.

Menu File

  • Save
    You can save the plotted graph as an Enhanced Meta File (EMF) or as a Bitmap image (BMP). You will be asked to give a name and directory to save the image on your hard disk. The saved image will have the same size as the graph on the screen. When you save the graph as EMF, the image will always look sharp, also when you resize the image. Furthermore, EMF images are very small.
  • Print
    This will print the graph as exactly as you see it (same pixel detail). If you want to make a sharp print of your graph, save your graph as Enhanced Meta File and print this saved image.
  • Close
    Close the figure. The properties of the Figure won't be saved.

Menu View

  • Axes
    Choose the axes style of the graph.
  • Grid
    Show gridlines in the graph
  • Legend
    Show a legend in the top right corner of the graph. The plotted functions are listed in the legend.
  • Zoom In
    Zoom the graph in. You can also zoom in by pressing the + key.
  • Zoom Out
    Zoom the graph out. You can also zoom out by pressing the - key.
  • Properties
    Show the Property window in the Figure, to the left of the graph.

Menu Mode

  • Trace
    In the Trace mode you can trace the plotted functions. When you click on a function the tracepoint will be painted at that position. The position will be printed at the bottom left area of the graph. The position of the tracepoint is stored in the properties xTrace and yTrace. Also see the Graph section on this page.
  • Move
    In the Move mode you can move the graph by dragging it with the mouse. Moving the graph is explained in the Graph section on this page.
  • Zoom
    In the Zoom mode you can zoom the graph by dragging it with the mouse. Zooming the graph is explained in the Graph section on this page.

Menu Help

  • Help on Graphs
    Open the Users guide at the page about graphs.
Back to top

Toolbar

Figure menu With 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.

Back to top

Graph

The Graph is the area where the functions are plotted. In general you can plot a graph with the Plot function.
Plot(2*cos(x))
       Plot done
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.

Move

There 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.

Zoom

Zooming 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>.

Trace

When 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 menu

When 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.

Back to top

Property window

All 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.

Back to top

See Also

Graphs, Interface