nxviz
nxviz copied to clipboard
draw() thakes 0 positional arguments but 1 was given
- 0.7.3
- Python version: 3.9
- Operating System: windows
Description
Trying to plot a matrix plot
What I Did
Plot a matrix Plot m = nv.MatrixPlot(graph) m.draw() plt.show()
Get a type error from m.draw()
I get the same error with CircosPlot and ArcPlot It draws though
I also think some of the documentation is out of data. MatrixPlot for example is not in plots
I am encountering this same error trying to use .draw()
with MatrixPlot, ArcPlot, and CircosPlot. Using nxviz 0.7.4, Python 3.9.
I thought it wouldn't be an issue, but now I figured that because of the error, I can't call a savefig on the plot.
Have you find the solution? I am encountering the same problem.
Having the same issue. Tested the following code:
import networkx as nx import nxviz as nv import matplotlib.pyplot as plt
G = nx.Graph() G.add_edges_from([(1, 2), (1, 3), (2, 3)])
c = nv.CircosPlot(G)
c.draw()
plt.show()
I got: TypeError Traceback (most recent call last) Cell In[17], line 10 6 G.add_edges_from([(1, 2), (1, 3), (2, 3)]) 8 c = nv.CircosPlot(G) ---> 10 c.draw() 12 plt.show()
TypeError: BasePlot.draw() takes 0 positional arguments but 1 was given