-
Notifications
You must be signed in to change notification settings - Fork 86
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
Question regarding parameters when creating MatrixPlot or CircosPlot #675
Comments
Hi @NiRuff, thank you for letting us know. I think this is a small bug. We'll fix it soon. |
Great, thanks a lot! For all that are interested:
When I ran the code like this it worked with drawing the edges with linewidth according to the Graph weights:
@AlirezaTheH: One more question: When having many groups with a lot of nodes the matrixPlot gets barely visible for me |
@NiRuff while it's technically possible to use Perhaps something we should do here is to ensure that the dots actually have a border around them. What do you all think? |
I see what you mean, @NiRuff. Thanks for being patient here 😄. The nature of large graphs means that the matrix would be difficult to visualize if you also wanted the transparency/lightness effect scaled by weight. I have a hunch you've hit the limits of what data visualization could do without considering the tradeoffs that need to happen. The first I'd suggest is using panels of matrix plots rather than a single one. In this case, one plot to show clustering structure w/o showing weights, and another plot to show with weights. Put them side by side and you have a very effective data viz panel. I believe there are two edge_kwargs that could help here, and you could use either one of them to start with. The first is the edge_alpha_scale kwarg, which lets you multiply the alpha (transparency) value by some scalar number across the board. The other is edge_alpha_bounds, which lets you set an upper-bound and lower-bound for transparency scaling. Those would result in visual inaccuracies but a more easily visualized single panel. If I were in your shoes, though, I'd still use the first option. They make the data storytelling much easier. |
Hi, I was following along with Eric's scipy 2019 network analysis made simple tutorial and ran into this error message plotting the seventh grader network. Is this a related or new issue? (I saw what NiRuff said above and uninstall and reinstalled nxviz package but no change with the error.) m = MatrixPlot(G) TypeError Traceback (most recent call last) TypeError: draw() takes 0 positional arguments but 1 was given Any help is appreciated! thanks! |
When I am creating a MatrixPlot or CircosPlot like this everything works fine:
However, I wanted to adjust the edge width and set it by the weight in my weighted graph G.
I trid adding the parameter
But got the following error message:
data_linewidth() missing 1 required positional argument: 'ref_data'
Is this not implemented yet or am I doing something wrong here?
Also:
I would also like to adjust some options regarding opacity for the matrix plot - here I run into similar problems.
Thanks!!
P.S.:
From the code:
edge_lw_by
: Edge metdata attribute key to set edge line width.edge_alpha_by
: Edge metdata attribute key to set edge transparency.The text was updated successfully, but these errors were encountered: