Is it possible to draw graphs on a given image (instead of on an empty figure) by using the python package NetworkX?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Perhaps you can try this but it requires matplotlib:
I used the stink bug on this page.
Using networkx by itself might be a little tricky. Perhaps you could set the image you want as a node (say node 0) and then position the node at origin (0,0). Finally, orient the other nodes from your graph on top of them. I haven’t tried it myself but its an idea that popped into my head.