Merge pull request #6910 from eric-wieser/patch-4

Make the background of inheritance diagrams transparent
This commit is contained in:
Takeshi KOMIYA 2019-12-16 00:45:22 +09:00 committed by GitHub
commit 55c0562138
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -247,6 +247,7 @@ class InheritanceGraph:
default_graph_attrs = { default_graph_attrs = {
'rankdir': 'LR', 'rankdir': 'LR',
'size': '"8.0, 12.0"', 'size': '"8.0, 12.0"',
'bgcolor': 'transparent',
} }
default_node_attrs = { default_node_attrs = {
'shape': 'box', 'shape': 'box',
@ -254,7 +255,8 @@ class InheritanceGraph:
'height': 0.25, 'height': 0.25,
'fontname': '"Vera Sans, DejaVu Sans, Liberation Sans, ' 'fontname': '"Vera Sans, DejaVu Sans, Liberation Sans, '
'Arial, Helvetica, sans"', 'Arial, Helvetica, sans"',
'style': '"setlinewidth(0.5)"', 'style': '"setlinewidth(0.5),filled"',
'fillcolor': 'white',
} }
default_edge_attrs = { default_edge_attrs = {
'arrowsize': 0.5, 'arrowsize': 0.5,