Comments (9)
@noragak thanks for pinging in! Let me check the source code to see where this is happening.
from nxviz.
I see it's happening here.
I see where you're coming from - the intent is to allow an end-user to specify the order of the groups rather than automatically do so.
What do you think the API design should look like to enable this?
from nxviz.
Difficult question!
- So one option would be again another parameter like "grouping_order" where one can choose between "alphabetically" and something like "default" (like a first come first serve order of the node annotations which later build the groups). Also maybe different parameters. But that are the only ones I can think of right now...
- But maybe there is an easier way?
from nxviz.
So one option would be again another parameter like "grouping_order" where one can choose between "alphabetically" and something like "default" (like a first come first serve order of the node annotations which later build the groups). Also maybe different parameters. But that are the only ones I can think of right now...
I think this is a great idea! Just have to make sure that grouping_order
is right next to node_grouping
in the docstrings, of course, otherwise it'll be easy to miss that one. 😄.
from nxviz.
Great. I'll start implementing it today. What other options should be added other than "alphabetically", "default"?
from nxviz.
Thanks @noragak! I think those look good for now. Perhaps this might be one of those few places where having the user explicitly pass in a list is also a reasonable and good option. What do you think?
from nxviz.
The implementation is done: you can have a look at it in my master branch. Right now you can distinguish between "alphabetically" (which is the default option to keep all plots created till now the same) and the other is "default" (maybe I should change the name here..?).
from nxviz.
Woohoo!! Could you do a PR in? GitHub has some really nice features related to showing code diffs.
Btw, I've scanned the relevant parts of the codebase - it looks good! Don't forget to add in an example; I think I will start building the examples gallery over the next month or so.
from nxviz.
Seeing as how #325 was merged, I'm closing this issue for now.
from nxviz.
Related Issues (20)
- I have vertex.txt and triangle.txt, how to create a networkx graph? HOT 2
- Is it possible to make arcplot directional? HOT 2
- Downgrading pandas, matplotlib, networkx packages when installing nxviz HOT 4
- Broken example in new API documentation
- version mismatch on packages distributed by conda and pypi HOT 3
- Not an issue but a veli easy question
- Having trouble re-creating graph HOT 1
- Feature Request: Edge direction by source or target node colors. HOT 6
- Feature Request: Node label layout for circus plot HOT 2
- Question regarding parameters when creating MatrixPlot or CircosPlot HOT 6
- Changing the default node colors in Circosplot
- 'LinearSegmentedColormap' object has no attribute 'colors' with divergent network edges HOT 1
- draw() thakes 0 positional arguments but 1 was given HOT 6
- Module nxviz has no attribute 'annotate'
- Annotate node_colormapping legend_kwargs are not applied
- Error importing and executing Circosplot. HOT 1
- Matrix Plot Overlay Bug
- Customize node size and colormap in circosplot
- how show the node_labels on nxviz version:0.7.4 HOT 2
- ImportError: cannot import name 'CircosPlot' from 'nxviz.plots HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nxviz.