nxviz icon indicating copy to clipboard operation
nxviz copied to clipboard

draw() thakes 0 positional arguments but 1 was given

Open aegonwolf opened this issue 2 years ago • 6 comments

  • 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

aegonwolf avatar Apr 30 '22 13:04 aegonwolf

I also think some of the documentation is out of data. MatrixPlot for example is not in plots

aegonwolf avatar Apr 30 '22 13:04 aegonwolf

I am encountering this same error trying to use .draw() with MatrixPlot, ArcPlot, and CircosPlot. Using nxviz 0.7.4, Python 3.9.

abigail-collier avatar May 04 '22 22:05 abigail-collier

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.

aegonwolf avatar May 11 '22 14:05 aegonwolf

Have you find the solution? I am encountering the same problem.

EgnaroJQ avatar Jul 11 '23 07:07 EgnaroJQ

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 image

ahmadbh96 avatar Aug 22 '23 21:08 ahmadbh96