summaryrefslogtreecommitdiff
path: root/examples/drawing/plot_knuth_miles.py
Commit message (Collapse)AuthorAgeFilesLines
* Update pre-commit (#6545)Jarrod Millman2023-03-231-1/+1
|
* Lint using Ruff (#6371)danieleades2023-02-191-1/+1
| | | | | | | | | | | | | | | * lint and fix using ruff * add flake8-pie lints * remove useless import alias * bump version * bump deps --------- Co-authored-by: daniel.eades <daniel.eades@hotmail.com>
* Update developer requirements (#6429)Jarrod Millman2023-02-141-1/+1
| | | | | * Update developer requirements * Run linter
* Remove redundant py2 numeric conversions (#5661)Mridul Seth2022-05-311-1/+1
| | | | | | | | | * Remove redundant float conversion * Remove redundant int conversion * Use integer division Co-authored-by: Miroslav Šedivý <6774676+eumiro@users.noreply.github.com>
* Make main default branch (and remove gitwash) (#4649)Jarrod Millman2021-03-041-1/+1
|
* Update Knuth miles example. (#4251)Ross Barnowski2020-10-161-17/+63
| | | | | | | | | | | | | | | | | | | | | | | | * MAINT: replace hard-coded print with print(G). Take advantage of more descriptive G.__str__. * WIP: get example working with cartopy * WIP: Make knuth example work with or without cartopy * CI: cherrypick CI setup from #4250 * Add country boundaries to knuth example. Adds Canada and Mexico map boundaries so that the Canadian cities are not floating in negative space * Slightly better figure aspect. * Reduce linewidth for paths between cities. Provides a little more contrast with the map borders. * Add warnings filter to ignore cartopy warnings
* Format w/ black==20.8b1Jarrod Millman2020-10-061-2/+2
|
* Upgrade to Py36 syntaxJarrod Millman2020-01-011-1/+1
| | | | $ find examples -name \*.py -exec pyupgrade --py36-plus {} \;
* Add links to data filesJarrod Millman2019-11-161-15/+10
|
* Update examplesJarrod Millman2019-11-111-40/+32
|
* Resolve many documentation issues (#3611)Dan Schult2019-09-301-1/+3
| | | | | | | | | | | | * Fixes #3498 Adds docs to BFS and DFS functions referring to each other * Fixes #3463 to add warning to closeness centrality * Fixes #3469 by adding a link to the miles datafile. * Fixes #3489 allowing scale=None and adding docs * Fixes #3473 by adding example to migration_guide_from_1.x_to_2.0.rst
* Update copyrightJarrod Millman2019-03-301-1/+1
|
* Misc. typos (#2872)luzpaz2018-02-141-1/+1
| | | | | | | | | | Found via `codespell -q 3 -I ../networkx-whitelist.txt` where whitelist consisted of: ``` ans childs iff nd te ```
* Update copyrightJarrod Millman2018-01-201-1/+1
|
* Refactor examples (#2527)Jarrod Millman2017-07-211-22/+18
| | | | | | | | | | | | * Fix unix_email and plot more examples * Fix doctest * Fix more examples * Fix AntiGraph.degree generator error in examples * Style/consistency changes and plot more examples
* Flatten doc hierarchy (#2520)Jarrod Millman2017-07-171-9/+7
| | | | | | | | * Silence some sphinx warnings * Update structure of documentation See https://github.com/networkx/networkx/pull/2054
* Fix sphinx (#2517)Jarrod Millman2017-07-171-0/+113
* Ensure valid rst file * Edit text * Update README and package docstring * Add myself as a contributor * Update gitwash * Fix warnings/errors except citations/footnotes * Remove old note about 3.0 incompatibility * Remove stale ref to gh-pages * Create top-level tools directory (standard practice) * Use sphinx-gallery extension for examples * Sphinx-gallery generates images for `plot_` examples * Comply with pep8 * Don't save figures