You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Implementing a visual representation of a node size (#30)
Fixes#29.
* Add MacOS .DS_Store file to ignore
* Add minimum width and height proportional to the number of lines in each node. See https://www.graphviz.org/doc/info/shapes.html
* - Add MAX_NODE_WIDTH as a limit
- UpdateSize() is the new method that will update both the width and the height (width / 2). If width exceeds MAX_NODE_WIDTH, the latter will become the new value and thus height will be half of it
* The following changes are made:
- MAX_NODE is set to 5 times NODE_WIDTH_FACTOR.
- Dimensions are rounded up to one decimal digit so as to get more regular ellipses.
* Add flag "--represent-node-size" to enable the relative feature
Remove int cast because we need a rounded number to one decimal digit
* Distribute node size between their min and max values
Add flag "--min-node-size" and "--max-node-size" to select min and max sizes from the command line
* Change math.inf to float(inf) for better legacy support
* Add command line arguements to choose size of nodes
* Add node size check so it is never less than 0
* Change formula so as to make it follow the distribution of node sizes more evenly
* Add scaling factor (FONT_SCALE_FACTOR) to resize font according to node width
* Fix a typo in core.py line 55 that failed unit tests
* Move constants to callgraph.py and adds logic to handle None values
* Remove min_node_loc and node_loc_std as they are not used
* Change to font_scale_factor as constant is defined in callgraph.py
* Make min_node_size, max_node_size, font_scale_factor optional by setting their defaults to None but actually calling them with the provided values
Set default values in function definition to default numbers to make checks work
0 commit comments