Style guide for effective graphs
1 Purpose of this guide
This guide provides practical advice for the production of clear and informative graphs. It will help you understand the principles of effective data presentation and can act as a helpful resource in your studies or work.
In the physical sciences, the primary purpose of graphs is data presentation. The most common form of graph is one in which some gathered data y are plotted against an independent variable x to illustrate their relationship. This is the focus of this guide.
1.1 Objectives
A graph is effective if it:
- Conveys information clearly, with minimal reading.
- Is not confusing or ambiguous.
- Is appealing enough to hold your reader’s attention.
These are your main objectives in graph production. In the next section, attention is given to those elements of graphs, such as text size, line styles and annotation, which help you achieve these objectives.
1.2 Uncertainty and data analysis
This guide covers the main principles of clear data presentation, but does not delve into uncertainty or fitting interpretation. These are closely entwined with data analysis, which varies greatly with the origin and type of the gathered data, as well as the overall aim of the report, so guidance in those areas should be sought from module conveners, lab demonstrators or project supervisors as needed.
2 Graph elements
For the points listed in the next sections you will find good practice represented in figures 1 to 6. In your own work, try to emulate the style shown here.
2.1 Layout and axes
Axes style
- Choose axes limits such that space in the graph is not wasted. The data should fill most of the plot area.
- Empty whitespace inside the axes can be further minimised with appropriate placement of the legend and annotation.
- Enclose the plot area with a ‘box’ of the axes lines. This delineates the graph from surrounding text.
- Gridlines can make a graph appear cluttered. But they sometimes aid data readability (figure 2, for example), so exercise your judgement on when to use them.
Logarithmic axes
If the x or y data range spans orders of magnitude, logarithmic axes scales may be needed. There are two ways to do this: (i) apply log scaling directly to the tick labels, as shown in figure 3, or (ii) apply log scaling to the data before plotting, as shown in figure 4. The second approach requires modified axes titles to reflect the mathematical transformation (being careful not to conflate log and ln). Both of these are acceptable, but they must not be applied simultaneously, or else the axes labels will be misleading.
2.2 Text and labelling
Graph text
- All graph text should be easily readable and there should not be large variation in text size across the various graph elements: axes titles, legend, tick labels, etc.
- The text size should be similar to, and certainly not much smaller than, that of the surrounding document.
- The typeface or ‘font’ should be the same as in the surrounding document.
Axes titles, units and symbols
- Axes titles must be understandable within the context of the surrounding document.
- Titles should be as concise as possible.
- For physical properties, axes titles must provide the units. Express units like this: Current / mA.
- Use SI units and prefixes, e.g., kg, MPa, µs.
- For quotients of units, either the / symbol or exponents are acceptable; e.g., m/s2, J K−1 kg−1. Choose whichever avoids ambiguity (but ensure consistency with the surrounding document).
- Symbols can be used in titles as long as they are defined in the document text before the graph is shown.
- Where symbols are used for variable names, they should be in italic font, e.g., I, ε, ΔP.
- The units should be in normal font, as shown in figures 2 and 6.
Tick style and labels
- Ticks, the short lines which gradate the axes, can be positioned inside the axes, outside, or both. All three styles are represented in this guide. Ensure consistency of style throughout the document.
- Avoid tick labels with lots of 0’s by using appropriate units and prefixes. See figure 1, which uses y axis tick labels of 1 to 4 mA, rather than 0.001 to 0.004 A.
2.3 Data representation
Marker styles and line styles
- Discrete data is represented by isolated markers.
- Continuous data is represented by uninterrupted lines.
- Data markers should be large enough to see clearly, but not so large that their value cannot be identified by referring to the axes.
- Lines should not be so thick as to obscure any underlying data markers, and should not be significantly thicker or thinner than the axes lines.
- Data markers should generally not be joined with line segments, like this —×—. This implies continuity between the separate values, which may not be true and could therefore mislead your reader.
- Where a trivial or widely understood continuous relationship exists between the x and y variables, connecting the data markers may be acceptable since line segments would reflect true trends. See figure 2, for example.
Multiple data sets
To distinguish between data sets, varying both line style and colour is better than just one of those properties (e.g., figure 6).
For example, these lines aid clear data presentation:
(different styles)while these are too similar:
(same style)And this marker set:
(different colours)is better than this:
(same colour)Error bars
- When data uncertainty is known, this should be represented with error bars stemming from the data markers (see figure 6).
- These should end with short horizontal lines and have thickness consistent with the data markers.
- The length of the error bars should reflect the uncertainty of the plotted data. This will likely be either: (i) the precision of the data, if read from an analogue or digital measurement device, or (ii) a statistical representation of the data range, typically the standard deviation, if numerous readings are taken.For example, the rightmost data point in figure 6 is 0.89 ± 0.05 kPa, so the error bars extend 0.05 kPa above and below the marker.
2.4 Improving clarity
The legend
- A legend is needed to help the reader distinguish between multiple data sets. It should include a concise and informative name for each data set and illustrate the marker or line style.
- It should be positioned inside the graph axes in a location that helps minimise empty whitespace.
- For a single data set and linear fit, a legend may not significantly improve clarity so can be omitted. For example, figure 1 is easy to understand without a legend. For more complex data and fitting, a legend may be needed to understand the graph (see figures 5 and 6).
Line of best fit
- Add a fit line only if it contributes to your analysis or description of the data.
- A fit line must have a mathematical basis which is relevant to the data. For example, a linear fit is suitable in figure 1 because the data is connected through I = V/R. Likewise, both fits in figure 6 are known theoretical models for fluid flow.Applying a quadratic fit in figure 1 or an exponential fit in figure 6 would be inappropriate, even if they provide excellent descriptions of the data, since there is no theoretical justification for those models.
- Do not extend the fit line beyond the range of data to which it is fit.
- Goodness of fit statistics, like R 2 or root-mean-squared-error, should be added to the graph if competing mathematical models are applied to the data (see figure 6). This shows which model provides the more accurate description of the data.If only a single fit is applied, the goodness of fit may be given in the figure caption or text of the document.
Figure caption
- Figure captions are placed immediately below the figure (the graph) in the document and help the reader understand its content.
- They must include a figure number, which is then referred to in the text when describing the data.
- A graph title is not needed in addition to the caption.
- Avoid non-informative captions like: A graph to show current against voltage.A suitable caption for figure 1 in this guide would be: Experimental data with a linear regression fit representing Ohm’s law (R 2 = 0.97).And for figure 6: Determination of flow type from recorded pressure drop data.
Annotation
- Annotation is used to convey information that is not obvious through inspection of the data. This includes useful fit results like the text in figures 1 and 5.
- Do not include annotation unnecessarily. It can detract from the neatness of the graph.
- For linear fits, do not label your fit y = mx + c, unless the axes titles happen to be x and y. Use the correct variable names instead.
3 Exporting graphics for reports
- Ensure that good quality images are exported for use in your reports by using the Save as or Export tools found in most graphing software and specifying high-resolution output. The bitmap .png format is suitable in most cases, especially if the graph is to be embedded in a Microsoft Word document or PowerPoint slide. But ensure the resolution is above 100 dpi.
- Do not specify extremely high bitmap resolutions unnecessarily. If several .png files of a few MB each are included in a report document, it will become slow to open and edit.
- Vector graphics formats like .eps and .pdf are also suitable, and are commonly used in dissertations and publication-quality reports created using LaTeX. These have smaller file sizes compared to bitmap formats and do not have innate resolutions, meaning that they can look good scaled to any size.
- Do not capture a screenshot of your graph and copy the image into your report. The end result will appear blurry and unprofessional.
4 Common mistakes
Table 1 below lists a few common mistakes seen in students’ graph production and suggests correct approaches. Some of the mistakes are illustrated in figure 7.
Figure 7 violates many of the points covered in section 2 and as a result is hard to interpret and is visually unappealing. Note the missing voltage units, poor selection of current units, poor line style differentiation, poor legend placement outside the plot area and, worst of all, the use of a fit model, in this case a logarithmic fit, which is not justified by the current-voltage data.

| Mistake | Consequence | Solution |
|---|---|---|
| Using default Microsoft Excel styles. | Unprofessional appearance. | Edit graph style to comply with this guide. |
| Large variation in text size. | Unprofessional appearance. | Ensure consistency of text size across graph elements and with the surrounding document. |
| Using screen capture to obtain graph image. | Blurry, unprofessional appearance. | Use proper Save as or Export functionality. |
| Adding graph title and caption. | Cluttered, unprofessional appearance. | Only a caption is needed. |
| Poor choice of units. | Too many 0’s in tick labels; unprofessional appearance. | Appropriate SI units and/or logarithmic axes. |
| Missing axes units. | Data is impossible to interpret. | Ensure units are always given. |
| Poor data set names in the legend. | Data is hard to interpret. | Provide concise and informative names. |
| Similar line styles or markers. | Hard to distinguish the data sets. | Vary the marker or line style and colour to help the reader. |
| Connecting discrete data with line segments. | Implies continuous relationship between variables. | Use an appropriate fit line instead. |
| Adding fit lines without regard for theoretical relationships. | Misleading data interpretation; also suggests lack of understanding. | Establish proper fit model for the data with background reading. |
| Equation in graph refers to variables x and y. | Limits clarity; also suggests lack of understanding. | Use variable names corresponding to axes labels or figure caption. |
5 Final comments
Creating high-quality graphs takes time and practice. If you follow the points laid out here and emulate the style of the presented figures, you will be able to produce clear and appealing graphs that convey information easily to your audience.
A useful guide for data analysis is Herman Berendsen’s A Student’s Guide to Data and Error Analysis, which is available electronically via the University of Nottingham library (link here). For more information on SI units and prefixes, which are used in this guide, the best source to consult is the SI Brochure, published by the BIPM (International Bureau of Weights and Measures). It is available at www.bipm.org/en/publications/si-brochure.