diff options
| author | Andrew Guschin <guschin@altlinux.org> | 2024-10-30 21:08:23 +0400 |
|---|---|---|
| committer | Andrew Guschin <guschin@altlinux.org> | 2024-10-30 21:08:23 +0400 |
| commit | 79a781ed26706d209ef227986d604e9d17a19d00 (patch) | |
| tree | ff6a4640f8e3ddf2a21acf407e2b506390444786 /drawer/src | |
| parent | dcfac8227b2628c7e2c1e06a551300a6403f2b79 (diff) | |
fix(drawer): fix output format
Diffstat (limited to 'drawer/src')
| -rw-r--r-- | drawer/src/drawer/__init__.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/drawer/src/drawer/__init__.py b/drawer/src/drawer/__init__.py index dbe688e..306108c 100644 --- a/drawer/src/drawer/__init__.py +++ b/drawer/src/drawer/__init__.py @@ -18,10 +18,12 @@ def main(): print(nx.to_latex( g, nx.circular_layout(g), caption=f"Визуализация графа <<{g6}>>", - figure_wrapper='\\begin{{figure}}\\centering\n{content}{caption}{label}\n\\end{{figure}}', + figure_wrapper='\\begin{{figure}}[h]\n \\centering\n{content}{caption}{label}\n\\end{{figure}}', as_document=False, tikz_options=tikz_options, node_options=node_options, edge_options=edge_options )) +if __name__ == "__main__": + main() |