summaryrefslogtreecommitdiff
path: root/examples/drawing/plot_simple_path.py
diff options
context:
space:
mode:
authorJarrod Millman <jarrod.millman@gmail.com>2017-07-21 08:50:40 -0700
committerDan Schult <dschult@colgate.edu>2017-07-21 11:50:40 -0400
commit1e6df4c105fa7a1e442da72ddb009bb253dc7d4e (patch)
treed728526ccca673a762f90f174223cb558c86e02d /examples/drawing/plot_simple_path.py
parent7be0d8f33b46d37264ae181cb2a9fadb310fe687 (diff)
downloadnetworkx-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.py7
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)