GraphDraw manual

The graph window layout options


[ Layout options | Graph tab | Lines tab | Axes tab | Symbols tab | Colours tab ]

[ Full index ]


Layout options

When a new data set is created or loaded, it will inherit settings for any graph attached to it from the global choices settings. The graph display options window allows these settings to be overridden for an individual graph.

At the bottom of the graph options window are two buttons.

Apply
This will store and use the new settings only for the graph from which the menu was opened. It will not change any other graph that is currently showing, or any other graph attached to a new or different data set. If the changes are to affect all subsequently plotted graphs, then use the application wide Choices dialogue.
Cancel
Close the dialogue and ignore any changes made since it was opened.

The options that can be changed are grouped under tabs in the window.

The groups of settings are as follows.

These are described in detail below.


Graph tab

This section contains settings for the graph display, in general.

Graph size
This determines the size of the window used to display a graph. Current sizes available are
  • 640 × 480
  • 800 × 600
  • 1024 × 768
  • 1280 × 1024
  • A4 landscape
  • A4 portrait
  • Custom

If the option Custom is selected, then the x and y extents can be entered in the writable boxes Custom width and Custom height.

Background colour
Pressing the menu button to the right of the field showing the colour used for the graph background will result in a standard colour picker dialogue being shown. A new colour can be chosen, or the background set to 'None'. In this case the colour block will show a 'crosshatch' pattern to indicate 'transparent'.

The images below show a graph with and without a background colour.

  

Lines tab

Graph line widths
In this section it is possible to set the line widths used when plotting the graph. The widths for the graph axes, the fitted data line, and the grid lines, can be set independently, using the appropriate bump icons to the right of the width values.
Use thin lines on vdu
Thin lines, as understood by the draw module are not supported directly, since the use of such lines can cause problems with e.g. high resolution printers, when the 1 pixel wide line effectively becomes invisible.

When using line widths of a fraction of a pt, the VDU display can sometimes look a little uneven, particularly with lines at an angle to the horizontal/vertical. In some cases, lines can completely disappear. This is where the option Use thin lines on vdu comes in. If this is selected, then the screen display will use 1 pixel wide lines for all the lines on the graph, but when saving draw files and printing will revert to the actual line widths as set in this dialogue. If this is not set, then GraphDraw will make the assumption that lines of less than about 0.80 pt should be displayed on screen as 'thin' lines, and thicker lines will be displayed at their configured thickness. (Why 0.8 pt? There are 72 pt to the inch, and the vdu display is nominally 90 pixels to the inch. Thus 1 px is about 0.8 pt).


Axes tab

Axis pip type
You can set the pips to be inside, outside or straddle the axes. Make your selection from the popup menu button to the right of the display field.

The images below show these three options.

     
Axis pip size
The length of the axis pips can be set in os units by means of the up/down bump arrows. The range allowed is 10 - 40 os units. The images below show the two extremes of size.
  
Boxed graph
This group of settings control whether a bounding box is put around the graph, and whether grid lines are placed on the graph.
Full box outline
When ticked, a box is drawn around the graph. If a box is chosen, then the other options become available.
With axis pips
Pips are always drawn on the axes themselves. When ticked, pips will be drawn on the box outline as well as on the axes.
X axis grid
When ticked, the x axis pips will be extended across the graph (vertically) between top and bottom of the box.
Y axis grid
When ticked, the y axis pips will be extended across the graph (horizontally) between the left and right of the box.
Dashed grid
When ticked, the grid lines (if present) will be drawn dotted. If unticked, a solid line will be drawn.

The images below show a range of these effects from no box to a box with all options active.

  
  
Axes through origin
The graph axes are normally drawn at the left and bottom of the graph. If either the x or y data (or both) has both positive and negative values, then if this is ticked, the graph axis will be drawn through the zero point. If unticked then the axes will always be put at left/bottom even if there are positive and negative values.

The images below show this option off and on.

  
Offset x-axis from origin
Offset y-axis from origin
This allows the position of the axis to be offset from its default position. It can only be used when the bottom left of the graph is the point (0,0). The images below show this option off and on.
  
Offset x-axis labels
Offset y-axis labels
It is sometimes the case that, when full boxed axes is set, and the data spans zero, the box or axes pass through the axis text, giving an untidy look. This option moves the axis text to the side of the box/axis and can improve matters. The images below show the option off and on.
  

Symbols tab

This tab allows the type of symbols used on the graph to be defined. The type, or shape, of the symbol, and its size can all be set. The type of symbol (e.g. square, circle) is chosen from the popup menu. The size (specified in OS units) can be set using the bump icons.

The line width applies to symbols that are not filled shapes, but are drawn as lines, e.g. a cross or plus symbol. In this case the line width in pts used to draw the symbol can be set using the bump icons.


Colours tab

The colour used for a number of graph components can be independently chosen. The colours that can be set are

In each case, clicking the menu button to the right of the colour patch showing the current colour will raise a standard colour picker dialogue, which is used to select a new colour.


These pages are best viewed in a CSS compliant browser. For RISC OS, Netsurf would be the browser of choice.

Larr.gif - 145 bytes Graph window   |   Index  |   Graph annotation Rarr.gif - 141 bytes

GraphDraw is © Chris Johnson, 2014
Email:chris@chris-johnson.org.uk

This document last modified on 15th August 2015