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

Improvement to arrowheads of a DiGraph edges. #2757

Closed
rodogi opened this issue Nov 16, 2017 · 3 comments
Closed

Improvement to arrowheads of a DiGraph edges. #2757

rodogi opened this issue Nov 16, 2017 · 3 comments

Comments

@rodogi
Copy link
Contributor

rodogi commented Nov 16, 2017

I was wondering if there was planing on changing the arrowheads of the edges of directed graphs to be more arrow like (triangular shape instead of thicker line). For instance see this question on stackoverflow.

@hagberg
Copy link
Member

hagberg commented Nov 17, 2017

That would be a great addition the the networkx/matplotlib drawing package. It is technically possible but so far there have been no contributions that solve the general arrow drawing problem.

@flying-sheep
Copy link

so far there have been no contributions that solve the general arrow drawing problem.

that’s incorrect, except if you mean something different with that: https://groups.google.com/d/msg/networkx-discuss/uV_amBP65n0/7nVubHNyBNMJ

@hagberg
Copy link
Member

hagberg commented Nov 24, 2017

See #2760

@hagberg hagberg closed this as completed Nov 24, 2017
dschult pushed a commit that referenced this issue Dec 17, 2017
* changing source node markers, not working

* markers set by the angles between two nodes, not working

* Using FancyArrowPatch seems to work

* Patch with if and elif cases, working

* Docstring and magic numbers fix

* Add final comments

* Final 1st draft

* Arrow to maker's edge: circle marker only

* Add arrow size, and possibility of many marker sizes

* add arrow color for array of numbers

* return edge_collection and None when arrows

* return arrow_collection list

* add arrow example in doctring

* fix comment lengths

* fix doctring draw_networkx_edges

* fix docstring

* Fix spring_layout typo in docstring and old pep8 line length errors
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

3 participants