diff options
| author | Jarrod Millman <jarrod.millman@gmail.com> | 2017-07-21 08:50:40 -0700 |
|---|---|---|
| committer | Dan Schult <dschult@colgate.edu> | 2017-07-21 11:50:40 -0400 |
| commit | 1e6df4c105fa7a1e442da72ddb009bb253dc7d4e (patch) | |
| tree | d728526ccca673a762f90f174223cb558c86e02d /examples/drawing/plot_simple_path.py | |
| parent | 7be0d8f33b46d37264ae181cb2a9fadb310fe687 (diff) | |
| download | networkx-1e6df4c105fa7a1e442da72ddb009bb253dc7d4e.tar.gz | |
Refactor examples (#2527)
* 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
Diffstat (limited to 'examples/drawing/plot_simple_path.py')
| -rw-r--r-- | examples/drawing/plot_simple_path.py | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/examples/drawing/plot_simple_path.py b/examples/drawing/plot_simple_path.py index 1726c62b..f80e0fed 100644 --- a/examples/drawing/plot_simple_path.py +++ b/examples/drawing/plot_simple_path.py @@ -5,13 +5,8 @@ Simple Path =========== Draw a graph with matplotlib. -You must have matplotlib for this to work. """ -try: - import matplotlib.pyplot as plt -except: - raise - +import matplotlib.pyplot as plt import networkx as nx G = nx.path_graph(8) |
