Visualize Interdisciplinary map of the journals network#

The goal of this app is to show an overview of the journals network structure as a complex network. Each journal is shown as a node and their connections indicates a citation between two of them.

First, let’s import some useful functions

from os.path import join as pjoin

import numpy as np

from fury import actor
from fury import colormap as cmap
from fury import window
from import fetch_viz_wiki_nw

Then let’s download some available datasets.

files, folder = fetch_viz_wiki_nw()
categories_file, edges_file, positions_file = sorted(files.keys())
Dataset is already in place. If you want to fetch it again please first remove the folder /Users/skoudoro/.fury/examples/wiki_nw
More information about complex networks can be found in this papers:

We read our datasets

We attribute a color to each category of our dataset which correspond to our nodes colors.

We define our node size

Lets create our edges now. They will indicate a citation between two nodes. OF course, the colors of each edges will be an interpolation between the two node that it connects.

Our data preparation is ready, it is time to visualize them all. We start to build 2 actors that we represent our data : sphere_actor for the nodes and lines_actor for the edges.

sphere_actor = actor.sphere(
    radii=radii * 0.5,

lines_actor = actor.line(

All actors need to be added in a scene, so we build one and add our lines_actor and sphere_actor.

scene = window.Scene()


The final step ! Visualize and save the result of our creation! Please, switch interactive variable to True if you want to visualize it.

interactive = False

if interactive:, size=(600, 600))

window.record(scene, out_path='journal_networks.png', size=(600, 600))
viz network

This example can be improved by adding some interactivy with slider, picking, etc. Play with it, improve it!

Total running time of the script: ( 0 minutes 1.164 seconds)

Gallery generated by Sphinx-Gallery