Skip to content

Commit

Permalink
layout name fixed from circle to circo; osage layout name added
Browse files Browse the repository at this point in the history
  • Loading branch information
aszilagyi committed Jun 25, 2024
1 parent fe6d5a8 commit 0b56c4c
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion docs/configfile.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ title: Tabnetviz configuration options
Save the modified edge table, i.e. after new columns from network analysis, rankings, Boolean columns defining edge groups, and calculated non-Graphviz attributes have been added. The format can be csv, tsv, xlsx, or xls; the program will use the filename extension to decide the format. Optional; by default no file will be saved. Cannot be the same as the original edge table file name. Can be overridden on the command line using the `--edgetableout` option.
* **colorbars:** _filename_\
Save an SVG file named _filename_ containing color bars for the colormaps used in the node style and edge style mappings. These can then be used to create a legend for your visualization. Optional; if not specified then no such file will be created.
* **layout:** **`neato`**|`dot`|`twopi`|`circle`|`fdp`|`sfdp`|`patchwork`| **_dotfilename_**\
* **layout:** **`neato`**|`dot`|`twopi`|`circo`|`fdp`|`sfdp`|`patchwork`|`osage`| **_dotfilename_**\
Specify a layout algorithm or a dot file to take a pre-generated layout from. If a dot file is specified, it must contain the same network as the current network, and must contain position coordinates for all nodes and edges.
* **graphattrs:**\
Optional additional Graphviz graph attributes. By default, `outputorder: edgesfirst`, and `overlap: false`, will be set for nicer visual appearance of the graph.
Expand Down
2 changes: 1 addition & 1 deletion docs/userguide.md
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,7 @@ to create a legend for your visualization.

The `/layout` keyword can be used to set the graph layout algorithm.
Any algorithm known to Graphviz can be used, i.e. `neato`, `dot`,
`twopi`, `circle`, `fdp`, `sfdp`, and `patchwork`. The default is
`twopi`, `circo`, `fdp`, `sfdp`, `osage`, and `patchwork`. The default is
`neato`. Alternatively, a **.dot** file name can be specified; this
must contain position information, and the layout will be directly
loaded from it. This file usually comes from an earlier run of the
Expand Down
4 changes: 2 additions & 2 deletions tabnetviz/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -313,8 +313,8 @@ def table2net(args):
else:
raise ValueError('graph in the input dot file %s differs from the graph specified '
'in the tables' % (conf['layout']))
elif conf.get('layout', 'neato') not in ['neato', 'dot', 'twopi', 'circle', 'fdp', 'sfdp',
'patchwork']:
elif conf.get('layout', 'neato') not in ['neato', 'dot', 'twopi', 'circo', 'fdp', 'sfdp',
'patchwork', 'osage']:
raise ValueError('layout should be one of neato, dot, twopi, circle, fdp, sfdp, '
'patchwork, or a .dot file name')

Expand Down
2 changes: 1 addition & 1 deletion tabnetviz/configtemplate.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
#
# Define layout
#
layout: neato # neato|dot|twopi|circle|fdp|sfdp|patchwork (see graphviz docs)
layout: neato # neato|dot|twopi|circo|fdp|sfdp|patchwork|osage (see graphviz docs)
#
# Graph attributes (note: "outputorder: edgesfirst" and "overlap: false" are set by default)
#
Expand Down

0 comments on commit 0b56c4c

Please sign in to comment.