diff --git a/docs/diagram.html b/docs/diagram.html index a50aef58..0845afea 100644 --- a/docs/diagram.html +++ b/docs/diagram.html @@ -86,4 +86,19 @@ with Diagram("Simple Diagram", show=False): EC2("web") -
Last updated on 2020-2-3
ExamplesNodes
\ No newline at end of file +

If you are familiar with Graphviz, you can customize the diagrams with Graphviz attribute config options.

+
+

graph_attr, node_attr and edge_attr are allowed. Here is a reference link.

+
+
from diagrams import Diagram
+from diagrams.aws.compute import EC2
+
+graph_attr = {
+    "fontsize": 45,
+  "bgcolor": "transparent"
+}
+
+with Diagram("Simple Diagram", show=False, graph_attr=graph_attr):
+    EC2("web")
+
+
Last updated on 2020-2-14
ExamplesNodes
\ No newline at end of file diff --git a/docs/diagram/index.html b/docs/diagram/index.html index a50aef58..0845afea 100644 --- a/docs/diagram/index.html +++ b/docs/diagram/index.html @@ -86,4 +86,19 @@ with Diagram("Simple Diagram", show=False): EC2("web") -
Last updated on 2020-2-3
ExamplesNodes
\ No newline at end of file +

If you are familiar with Graphviz, you can customize the diagrams with Graphviz attribute config options.

+
+

graph_attr, node_attr and edge_attr are allowed. Here is a reference link.

+
+
from diagrams import Diagram
+from diagrams.aws.compute import EC2
+
+graph_attr = {
+    "fontsize": 45,
+  "bgcolor": "transparent"
+}
+
+with Diagram("Simple Diagram", show=False, graph_attr=graph_attr):
+    EC2("web")
+
+
Last updated on 2020-2-14
ExamplesNodes
\ No newline at end of file