I’m currently using DataShader to bundle edges I’ve generated from running a simulation. After using hammer_bundle(), I end up with a dataframe that looks like this:
x y weight
0 -76.931194 39.250717 0.100000
1 -76.920644 39.253958 0.100000
2 -76.905572 39.258826 0.100000
3 -76.885542 39.265782 0.100000
4 -76.862568 39.274699 0.100000
… … … …
283 -73.952204 40.713536 0.100000
284 -73.952466 40.730691 0.100000
285 -73.969797 40.774162 0.100000
287 -73.838803 40.657513 0.268421
288 -73.838803 40.657513 0.268421
After examining both the documentation on DataShader and the source code on GitHub, it appears that “weight” is a valid parameter to pass into hammer_bundle, and this function acceps it without any issues. However, I’m at a loss with how to incorporate the weight into a visualization. I’ve tried using both the path object and the curve object to try and draw the network and pass “weight” as some sort of linewidth parameter, but it ends up being ignored during the visualization and all edges are the same width. Anybody have any ideas/advice on how to go about incorporating the edge weights into my visualization?