Comments (2)
You need to do it like this:
ig.plot(graph, layout="grid", vertex_color=[(1.0, 0.0, 0.0)] * graph.vcount())
The problem is that igraph is not using (1.0, 0.0, 0.0)
as colors for all the vertices -- instead of that, it uses 1.0
for the first vertex, 0.0
for the second and third vertices, and then it starts recycling the tuple for the remaining vertices. This should probably be emphasized in the documentation, though.
from python-igraph.
Perfect, thanks a lot! yes the documentation should be more clear about it.
from python-igraph.
Related Issues (20)
- fails to build with clang 17.0.6 in Termux HOT 4
- Add C argument prefixattr to Python interface of write_graphml HOT 2
- In version 0.10.5 or later, `ax.texts` is empty.
- Is it possible to have the global/local efficiency calculation function in the python-iGraph version?
- Lazy load matplotlib because importing it is slow and not core to using igrpah HOT 1
- Feature Request: Object Graph Model HOT 4
- edge_attrs not available anymore HOT 4
- Building with an external igraph library on Windows HOT 5
- Failed to use `scipy.sparse._csr.csr_matrix` to init a graph. HOT 1
- Bug: No such attribute for layout_bipartite HOT 5
- The default number of trials in `rewire()` should be proportional to the edge count
- is_directed() method not working properly? HOT 8
- "RuntimeError: fdopen() failed unexpectedly" when reading too many gml files HOT 9
- libblas not loaded HOT 2
- Check for symmetry in `_graph_from_weighted_sparse_matrix`
- `VertexCover.__plot__` `mark_groups` argument does not behave correctly and can cause a crash HOT 1
- All-to-all shortest paths? HOT 1
- compile fails with setuptools>=72.2.0 (manylinux2010) HOT 1
- Python 3.13 compatibility HOT 5
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 python-igraph.