add transparenz background

This commit is contained in:
Simon Rieger 2024-03-19 22:45:43 +01:00
parent 616572fab8
commit 4361c1eb11

View file

@ -233,13 +233,13 @@ def generate_graph(verbose: bool, file: str, url: str):
comment="Docker Network Graph", comment="Docker Network Graph",
engine="sfdp", engine="sfdp",
format=ext[1:], format=ext[1:],
graph_attr={'splines': 'true', 'rankdir': 'LR'}, graph_attr=dict(splines="true", rankdir="LR", bgcolor="transparent"),
) )
else: else:
g = Graph( g = Graph(
comment="Docker Network Graph", comment="Docker Network Graph",
engine="sfdp", engine="sfdp",
graph_attr={'splines': 'true', 'rankdir': 'LR'}, graph_attr=dict(splines="true", rankdir="LR", bgcolor="transparent"),
) )
for _, network in networks.items(): for _, network in networks.items():