Linear Diagram Generator

Diagram Width:
Diagram Height:
Show Guides:
(leave blank for default)
(leave blank for default)
None Background Lines

To use this tool, enter the sets that intersect on each line, separated by spaces. The diagram will not change until the "Redraw Diagram" button is pressed.

This is a diagram that shows the intersections of a number of sets. It can be used as an alternative to a Venn or Euler diagram. There is evidence that linear diagrams are more easily interpreted than the other kinds of diagram1,2.
Some help on how to interpret linear diagrams.

A paper detailing the process of designing this tool is given here:
If you use the tool in your research, we encourage you to reference this publication.

Ways of accessing the results

You can screen shot the image, download svg, or embed live code in your web page.

Click on the button below to download the image as . This can be edited using an svg editor such as Inkscape. Inkscape will also allow the diagram to be saved as gif, png, eps and other formats. This download facility only works with modern browers. If it fails for you, try upgrading your browser.

To embed this diagram in your own web page, copy and paste the following code into your html:

Length Proportional Diagrams

It is possible to use this tool to generate length proportional diagrams, where the widths of the intersections are proportional to input values. To use this facility, add a space followed by the required value to every intersection. An example of a length proportional diagram.


Developed by: Peter Rodgers email:, Gem Stapleton and Peter Chapman

1. Visualizing Sets: An Empirical Comparison of Diagram Types. Peter Chapman, Gem Stapleton, Peter Rodgers, Luana Micallef, and Andrew Blake. In Diagrams, LNCS (LNAI) 8578, pages 146-160. Springer, July 2014
2. A Comparative Study on Linear and Region Based Diagrams. B. Gottfried. Journal of Spatial Information Science, 10:3-20, 2015.

The Linear Diagram Generator is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License v3 or later as published by the Free Software Foundation. A local copy of the licence.