Commit 59ed0cf
Create a Tikz latex drawing feature for networkx (#6238)
* Implemented conversion from networkx graph to latex graph.
* Removed latex cache files uploaded by error.
* Resolved placeholders file import issue.
* Removed dependency to numpy
* Updated test
* Wrapped test for numpy dependency
* Updated test name
* format changes to nx_latex.py and friends.
vertex -> node, vertices -> nodes
PEP8 spacing and tabs
pytest function instead of class (class not needed here -- no imports)
Moved author info to CONTRIBUTORS.rst as our new standard
converted list comprehension done for side-effects to for-loop.
switch to f-strings from string-format calls
update setup.py to remove conflicts
* Remove numpy requirement for testing latex
Also pep8 formatting
* reorder imports in __init__
* Attempt to debug windows/appveyor adigraph error
* try again
* Remove types, run pre-commit
* blackify
* pyupgradify
* inline latex placeholders and expected_tex.
Check not multigraph.
Add example
Change variable name `file` to `latex_code`
inline if/else for __init__ setup
* Change tabs to spaces
* pull apart Adigraph to simplify interface
* remove class Adigraph completely in favor of functions
* replace default layout to be circular.
(matches adigraph and avoids using random seeds in tests
* fix old version of isort result
* update documentation and include with rst file. Update some tests
* make docs more complete, checked and add tests
* Cleanup extra file changes that aren't needed
* Add TikZ version of to_latex as default
* improve docs
* Make the networkx latex interface via TikZ and not adigraph
* fix rebase
* Apply suggestions from code review
Co-authored-by: Mridul Seth <mail@mriduls.com>
* comment out print statements in tests
* Turn off multigraph for latex
* Remove tests of `line width` and edge label placement
* add back line width style, fix placement of style on edges.
* Set default layout to have radius 10
Co-authored-by: Mridul Seth <mail@mriduls.com>
* fix docstring test
* Minor docstring formatting nits.
Co-authored-by: Luca Cappelletti <cappelletti.luca94@gmail.com>
Co-authored-by: Mridul Seth <seth.mridul@gmail.com>
Co-authored-by: Mridul Seth <git@mriduls.com>
Co-authored-by: Mridul Seth <mail@mriduls.com>
Co-authored-by: Ross Barnowski <rossbar@berkeley.edu>1 parent 814b295 commit 59ed0cf
5 files changed
Lines changed: 876 additions & 1 deletion
File tree
- doc
- developer
- reference
- networkx/drawing
- tests
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
145 | 145 | | |
146 | 146 | | |
147 | 147 | | |
| 148 | + | |
148 | 149 | | |
149 | 150 | | |
150 | 151 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
95 | 95 | | |
96 | 96 | | |
97 | 97 | | |
98 | | - | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
| 4 | + | |
4 | 5 | | |
5 | 6 | | |
6 | 7 | | |
0 commit comments