netgraph
is a python library for publication quality plots of networks. It is built on matplotlib
and compatible with networkx
and igraph
graph objects. Interactive tweaking and data exploration are supported. The homepage of the project including source code, documentation, issue tracker, and a gallery of usage examples can be found on github here.
Questions tagged [netgraph]
13 questions
2
votes
0 answers
netgraph interactive graph not working when changing shape in jupyter notebook
I created a graph with networkx assigning properties to each node. Then, I used netgraph to display my graph in Jupiter Notebook (Python 3.5) as an Interactive graph (using netgraph.InteractiveGraph), the problem is that when I want to use a…

Karla Godinez
- 36
- 2
1
vote
1 answer
Netgraph dot layout avoiding node labels overlap: howto?
I am generating simple syntactic dependecies trees such as in the following example:
Best layout is "dot" but on the top row things get very crowded. Is there any parameter or other way to avoid node labels overlapping with neighbouring nodes (and…

Robert Alexander
- 875
- 9
- 24
1
vote
2 answers
clickable netgraph in PyQt application with tabs
I have a PyQt application which has a tab widget that can open any number of tabs. Each tab embeds a matplotlib canvas displaying graphs.
Lately, I have tried to implement InteractiveGraph from netgraph library, with little success despite the help…

ThylowZ
- 55
- 7
1
vote
2 answers
Adjust fontsize in netgraph with nodes in form of proposition with quantifiers?
I am using netgraph to visualize my networkx graphs. My problem now is, the visualisation of formulas are in natural way not as pretty as I would expect. Here my example graph:
import networkx as nx
from netgraph import Graph # pip install…

Martin Kunze
- 995
- 6
- 16
1
vote
1 answer
Python Netgraph Matplotlib Refresh Plot
I am working on a visualization of a network that includes moveable nodes with edge labels that are updated by streaming data. Currently I am using randint to update a pandas dataframe while I work on the plotting.
The current code can generate the…

Michael Bernico
- 43
- 9
0
votes
0 answers
Why is a simple netgraph demo not displaying correctly in a colab notebook?
While this very small notebook runs fine on my local machine, with a table displaying all of the attributes of the node or edge you click on, when using is on colab it displays the graph as static and that's it. No dragging and moving and no data…

Robert Alexander
- 875
- 9
- 24
0
votes
1 answer
Scalable MatPlotLib Figure with PyQt window
Since my previous question here at StackOverflow I was able to make my plot touch the edges of my Figure:
However as you can see it does not keep the PyQt Window scaling, I do not know how to make the Figure size coincide with my Window…

Lavínia Beghini
- 165
- 1
- 11
0
votes
0 answers
FigureCanvasQTAgg inside QDockWidget does not fit and overlaps it
I am trying to embed a FigureCanvasQTAgg, however when I do it it overlaps the top of the window where the close and resize buttons are located.
I am not sure why this behavior occurs.
Here is a code example that makes it easier to reproduce the…

Lavínia Beghini
- 165
- 1
- 11
0
votes
1 answer
Is their a possibility to perform some mouse over in netgraph for node highlighting?
Based on this question it is possible to generate a networkx graph visualized with netgraph in this way:
import matplotlib.pyplot as plt
import networkx as nx
from netgraph import Graph # pip install netgraph
node_labels = {1: 'p→q', 2: '¬q', 3:…

Martin Kunze
- 995
- 6
- 16
0
votes
2 answers
Control size of points in netgraph in R
In R, the netgraph() function takes a cex.points argument that controls the appearance of the points in the plot. Is there a way to scale the size of points through a variable in my .excel?
Thank u all
I don't know the arguments

Derro
- 1
0
votes
1 answer
PyQt and Netgraph Editable Graph
I already have an PyQt application working along with Netgraph.
I am able to move vertex and edges, given the following code:
import sys
from PyQt5 import QtWidgets
import matplotlib
matplotlib.use("Qt5Agg")
from…

Lavínia Beghini
- 165
- 1
- 11
0
votes
1 answer
PyQt and Netgraph Interactive Graph
I have an application with PyQt and I would like to add the Netgraph graphs interactiviness to my application.
However, I am not being able to click the vertex and edges of the graph.
Here is a minimal example:
import sys
import matplotlib
import…

Lavínia Beghini
- 165
- 1
- 11
0
votes
1 answer
How to plot a netgraph directed plot with varying edge width based on networkx?
I would like to set different edge width in a network visualization with netgraph based on a networkx network. How to do this?
I am using netgraph as, to my knowledge, this is the only graph package to show two separate arrows in between two nodes.…

TobiasKAndersen
- 15
- 5