About this wiki

Page tags

Add a new page

Install igraph for plot

Graph plotting in igraph on Windows：cairo

Graph plotting in igraph is implemented using a third-party package called Cairo . If you want to create publication-quality plots in igraph on Windows, you must also install Cairo and its Python bindings. The Cairo project does not provide pre-compiled binaries for Windows, but other projects depending on Cairo do, so the preferred way to install Cairo on Windows along with its Python bindings is as follows:
Get the latest PyCairo. Make sure you grab the one that matches your Python version.

Install PyCairo using the installer. The installer extracts the necessary files into Lib\site-packages\cairo within the folder where Python is installed. Unfortunately there are some extra DLLs which are required to make Cairo work, so we have to get these as well.