-
Notifications
You must be signed in to change notification settings - Fork 40
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
Edges not curved #90
Comments
Hi, thanks for raising the issue.
g = Graph(triangle, edge_layout='curved', edge_layout_kwargs=dict(k=0.025))
You can install the dev branch via pip: pip install https://github.com/paulbrodersen/netgraph/archive/dev.zip |
@paulbrodersen Thank you for your answer. which is still not completely correct, there should be 2 edges a->c and c->a code:
|
The edge layout key-word argument g = Graph(
triangle,
node_layout=node_positions, edge_layout='curved', edge_layout_kwargs=dict(bundle_parallel_edges=False),
node_labels={0 : 'a', 1 : 'b', 2 : 'c'},
edge_labels=True, edge_label_fontdict=dict(fontweight='bold'),
ax=ax1,
) |
From this example: https://netgraph.readthedocs.io/en/latest/sphinx_gallery_output/plot_06_labels.html#sphx-glr-sphinx-gallery-output-plot-06-labels-py
the graph should looks like this
but, it's this instead
The text was updated successfully, but these errors were encountered: