Skip to content

Commit

Permalink
add ratio compress
Browse files Browse the repository at this point in the history
  • Loading branch information
Konstantin committed Nov 7, 2024
1 parent 70bffd9 commit 624b834
Show file tree
Hide file tree
Showing 15 changed files with 1,746 additions and 1,526 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -136,3 +136,5 @@ dmypy.json
# version number for rebdhuhn; gets auto-generated during the command
# python -m build
src/rebdhuhn/version.py

src/rebdhuhn/_version.py
2 changes: 1 addition & 1 deletion src/rebdhuhn/graphviz.py
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ def convert_graph_to_dot(ebd_graph: EbdGraph) -> str:
f'<B><FONT POINT-SIZE="18">{ebd_graph.metadata.chapter}</FONT></B><BR/><BR/>'
f'<B><FONT POINT-SIZE="16">{ebd_graph.metadata.section}</FONT></B><BR/><BR/><BR/><BR/>'
)
dot_attributes: dict[str, str] = {"labelloc": '"t"', "label": f"<{header}>", "size":"\"3,1\""}
dot_attributes: dict[str, str] = {"labelloc": '"t"', "label": f"<{header}>", "size":"\"3,1\"", "ratio": "\"compress\""}
dot_code = "digraph D {\n"
for dot_attr_key, dot_attr_value in dot_attributes.items():
dot_code += f"{ADD_INDENT}{dot_attr_key}={dot_attr_value};\n"
Expand Down
1,000 changes: 503 additions & 497 deletions unittests/__snapshots__/test_table_to_graph.ambr

Large diffs are not rendered by default.

89 changes: 54 additions & 35 deletions unittests/output/E_0003.dot.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit 624b834

Please sign in to comment.