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.

Head to http://ftp.gnome.org/pub/gnome/binaries/win32/dependencies/ and get the binary versions of Cairo (cairo_1.8.10-3_win32.zip at the time of writing), Fontconfig (fontconfig_2.8.0-2_win32.zip ), Freetype (freetype_2.4.4-1_win32.zip ), Expat (expat_2.0.1-1_win32.zip ), libpng (libpng_1.4.3-1_win32.zip ) and zlib (zlib_1.2.5-2_win32.zip ). Version numbers may vary, so be adaptive! Each ZIP file will contain a bin subfolder with a DLL file in it. Put the following DLLs in Lib\site-packages\cairo within your Python installation:
freetype6.dll (from freetype_2.4.4-1_win32.zip )
libcairo-2.dll (from cairo_1.8.10-3_win32.zip )
libexpat-1.dll (from expat_2.0.1-1_win32.zip )
libfontconfig-1.dll (from fontconfig_2.8.0-2_win32.zip )
libpng14-14.dll (from libpng_1.4.3-1_win32.zip )
zlib1.dll (from zlib_1.2.5-2_win32.zip ).

Unless otherwise stated, the content of this page is licensed under GNU Free Documentation License.