문제 설명
svg의 NetworkX node_shape (NetworkX node_shape from svg)
svg 이미지를 사용하여 Networkx에서 사용자 정의 노드를 생성할 수 있습니까? 예:
이 svg 이미지 사용: https://upload.wikimedia.org/wikipedia/commons/6/67/Firefox_Logo%2C_2017.svg
Peudocode에서:
nx.draw(G, pos=pos, node_shape=svg_string)
그리고 결국 다음과 같이:
이 작업을 어떻게 수행할 수 있습니까?
참조 솔루션
방법 1:
- Convert the Graph to Dot 1.
- Draw the node as an image. 2.
</ol>
(by samuelbrody1249、Unapiedra)