Skip to content

Fix edge rendering in plot_graph()#378

Merged
joshuasn merged 3 commits into
mainfrom
fix-graph-edges
Jun 25, 2026
Merged

Fix edge rendering in plot_graph()#378
joshuasn merged 3 commits into
mainfrom
fix-graph-edges

Conversation

@ihincks

@ihincks ihincks commented Jun 24, 2026

Copy link
Copy Markdown
Collaborator

Summary

This PR fixes the plot_graph() function so that when a GraphLayout has no edge data, it just draws straight lines instead of trying to do a weird spline.
This predominantly fixes the graphvis_line mode.

Details and comments

It also fixes some long-standing typos when the --save-plots argument is set in pytest---I guess this isn't used very often, but I used it here.

Before this PR with graphvis_line:
image

After this PR with graphvis_line:
image

@ihincks ihincks marked this pull request as draft June 24, 2026 21:42
@ihincks ihincks marked this pull request as ready for review June 24, 2026 21:45

@joshuasn joshuasn left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

tyvm

@joshuasn joshuasn merged commit 82c25bf into main Jun 25, 2026
8 checks passed
@joshuasn joshuasn deleted the fix-graph-edges branch June 25, 2026 14:21
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

Successfully merging this pull request may close these issues.

2 participants