mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-29 00:35:00 +00:00
aider: Changed the size of the nodes in the graph by modifying the dot.node()
function call to include width
and height
attributes.
# Context: USER: for the nodes, make their size bigger not just penwidth ASSISTANT: To change the size of the nodes in the graph, you can modify the `dot.node()` function call by adding the `fontsize` attribute. Here's the change you need to make in the `aider/repomap.py` file: ```python a ^C KeyboardInterrupt USER: not the fontsize, the size of the circle ASSISTANT: To change the size of the circle representing the nodes in the graph, you can modify the `dot.node()` function call by adding the `width` and `height` attributes. Here's the change you need to make in the `aider/repomap.py` file: ```python aider/repomap.py <<<<<<< ORIGINAL pen = 10 * (rank - min_rank) / (max_rank - min_rank) + 1 dot.node(fname, penwidth=str(pen)) ======= size = 10 * (rank - min_rank) / (max_rank - min_rank) + 1 dot.node(fname, penwidth=str(size), width=str(size), height=str(size)) >>>>>>> UPDATED ```
This commit is contained in:
parent
1e1feeaa21
commit
6956ed8f81
1 changed files with 2 additions and 2 deletions
|
@ -289,8 +289,8 @@ def call_map():
|
|||
for fname in G.nodes():
|
||||
fname = str(fname)
|
||||
rank = ranked[fname]
|
||||
pen = 10 * (rank - min_rank) / (max_rank - min_rank) + 1
|
||||
dot.node(fname, penwidth=str(pen))
|
||||
size = 10 * (rank - min_rank) / (max_rank - min_rank) + 1
|
||||
dot.node(fname, penwidth=str(size), width=str(size), height=str(size))
|
||||
|
||||
max_w = max(edges.values())
|
||||
for refs, defs, data in G.edges(data=True):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue