Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Force lines to overlap vs stagger separately #648

Closed
samcro1967 opened this issue Feb 6, 2022 · 2 comments
Closed

Force lines to overlap vs stagger separately #648

samcro1967 opened this issue Feb 6, 2022 · 2 comments

Comments

@samcro1967
Copy link

Trying to determine how to get all of the lines going from a node in one level to all nodes in the next level down to overlap rather than display staggered and totally separate. Is this possible?

Here is what I have right now:
image

Here is what I would like to have:
image

@clayms
Copy link

clayms commented Feb 6, 2022

Have a look at the following issue comments:

#358 (comment)
#358 (comment)

I don't think you can do that with orthogonal edges. However, you might be able to use a plaintext Node and set the node's horizontal and vertical sizes to "0". Might not be worth the time though.

Also, please post your code.

@samcro1967
Copy link
Author

Adding "concentrate":"true" and "splines":"spline" to graph_attr accomplished what I was looking for. Thank you.

graph_attr = {
    "fontsize": "22.5",
    "fontcolor":"black",
    "fontname": "Sans serif",
    "layout":"dot",
    "concentrate":"true",
    "splines":"spline",
}
  blank1 = Node("", shape="plaintext", height="0.0", width="0.0")
  caddy_auth_portal - Edge(color="blue", style="bold", tailport="s", headport="n", minlen="1")- blank1
  blank1 - Edge(color="blue", style="bold", tailport="s", headport="n", minlen="1") - management_group
  blank2 = Node("", shape="plaintext", height="0.0", width="0.0")
  caddy_auth_portal - Edge(color="blue", style="bold", tailport="s", headport="n", minlen="1")- blank2
  blank2 - Edge(color="blue", style="bold", tailport="s", headport="n", minlen="1") - downloads_group
  blank3 = Node("", shape="plaintext", height="0.0", width="0.0")
  caddy_auth_portal - Edge(color="blue", style="bold", tailport="s", headport="n", minlen="1")- blank3
  blank3 - Edge(color="blue", style="bold", tailport="s", headport="n", minlen="1") - media_mgmt_group
  blank4 = Node("", shape="plaintext", height="0.0", width="0.0")
  caddy_auth_portal - Edge(color="blue", style="bold", tailport="s", headport="n", minlen="1")- blank4
  blank4 - Edge(color="blue", style="bold", tailport="s", headport="n", minlen="1") - media_utils_group
  blank5 = Node("", shape="plaintext", height="0.0", width="0.0")
  caddy_auth_portal - Edge(color="blue", style="bold", tailport="s", headport="n", minlen="1")- blank5
  blank5 - Edge(color="blue", style="bold", tailport="s", headport="n", minlen="1") - monitoring_group
  blank6 = Node("", shape="plaintext", height="0.0", width="0.0")
  caddy_auth_portal - Edge(color="blue", style="bold", tailport="s", headport="n", minlen="1")- blank6
  blank6 - Edge(color="blue", style="bold", tailport="s", headport="n", minlen="1") - media_access_group

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants