I am plotting a table of graphs, but the nodes overlap the edges of the boxes.
Is there an option to scale the graphs down so as to stop the nodes going over?
I see lots of questions about adjusting spacing between the cells, but I want to scale down the graphs so they fit in the cells.
Here is the code for a simple example of the trouble:
from networkx.drawing.nx_agraph import graphviz_layout
import matplotlib.pyplot as plt
import networkx as nx
plt.figure(1, figsize=(9, 9))
G=nx.complete_multipartite_graph(1,1,1)
pos = graphviz_layout(G, prog="neato")
plt.subplot(9,9,1)
nx.draw(G, pos, node_size=50, with_labels=False)
G=nx.complete_multipartite_graph(1,1,2)
pos = graphviz_layout(G, prog="neato")
plt.subplot(9,9,11)
nx.draw(G, pos)
plt.show()