Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

draw() thakes 0 positional arguments but 1 was given #684

Open
aegonwolf opened this issue Apr 30, 2022 · 5 comments
Open

draw() thakes 0 positional arguments but 1 was given #684

aegonwolf opened this issue Apr 30, 2022 · 5 comments

Comments

@aegonwolf
Copy link

aegonwolf commented Apr 30, 2022

  • 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
Copy link
Author

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

@abigail-collier
Copy link

abigail-collier commented May 4, 2022

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

@aegonwolf
Copy link
Author

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.

@EgnaroJQ
Copy link

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

@ahmadbh96
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants