diff options
author | Anurag Bhat <90216905+faze-geek@users.noreply.github.com> | 2023-01-06 00:38:44 +0530 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-01-05 11:08:44 -0800 |
commit | 83948b6dc61f507adb4cd1a71561eac9ed3b72ec (patch) | |
tree | 920e6bf5e900c9505712b6d5a59301b2493ff061 /networkx/drawing | |
parent | 851aab2dad6dda73995b06d1ef01b95c3aa79891 (diff) | |
download | networkx-83948b6dc61f507adb4cd1a71561eac9ed3b72ec.tar.gz |
Fix typos in the networkx codebase (#6335)
* Fix_Typos
* Commit_Suggestions
Diffstat (limited to 'networkx/drawing')
-rw-r--r-- | networkx/drawing/layout.py | 2 | ||||
-rw-r--r-- | networkx/drawing/nx_agraph.py | 2 | ||||
-rw-r--r-- | networkx/drawing/nx_pylab.py | 8 |
3 files changed, 6 insertions, 6 deletions
diff --git a/networkx/drawing/layout.py b/networkx/drawing/layout.py index a4029942..2d49c30f 100644 --- a/networkx/drawing/layout.py +++ b/networkx/drawing/layout.py @@ -1143,7 +1143,7 @@ def arf_layout( a : float Strength of springs between connected nodes. Should be larger than 1. The greater a, the clearer the separation ofunconnected sub clusters. etol : float - Graduent sum of spring forces must be larger than `etol` before succesful termination. + Graduent sum of spring forces must be larger than `etol` before successful termination. dt : float Time step for force differential equation simulations. max_iter : int diff --git a/networkx/drawing/nx_agraph.py b/networkx/drawing/nx_agraph.py index f199b0e0..2ffa21fd 100644 --- a/networkx/drawing/nx_agraph.py +++ b/networkx/drawing/nx_agraph.py @@ -324,7 +324,7 @@ def view_pygraphviz( G : NetworkX graph The machine to draw. edgelabel : str, callable, None - If a string, then it specifes the edge attribute to be displayed + If a string, then it specifies the edge attribute to be displayed on the edge labels. If a callable, then it is called for each edge and it should return the string to be displayed on the edges. The function signature of `edgelabel` should be edgelabel(data), diff --git a/networkx/drawing/nx_pylab.py b/networkx/drawing/nx_pylab.py index 61030b1a..5e22f843 100644 --- a/networkx/drawing/nx_pylab.py +++ b/networkx/drawing/nx_pylab.py @@ -578,14 +578,14 @@ def draw_networkx_edges( Label for legend min_source_margin : int (default=0) - The minimum margin (gap) at the begining of the edge at the source. + The minimum margin (gap) at the beginning of the edge at the source. min_target_margin : int (default=0) The minimum margin (gap) at the end of the edge at the target. Returns ------- - matplotlib.colections.LineCollection or a list of matplotlib.patches.FancyArrowPatch + matplotlib.collections.LineCollection or a list of matplotlib.patches.FancyArrowPatch If ``arrows=True``, a list of FancyArrowPatches is returned. If ``arrows=False``, a LineCollection is returned. If ``arrows=None`` (the default), then a LineCollection is returned if @@ -784,7 +784,7 @@ def draw_networkx_edges( # is 0, e.g. for a single node. In this case, fall back to scaling # by the maximum node size selfloop_ht = 0.005 * max_nodesize if h == 0 else h - # this is called with _screen space_ values so covert back + # this is called with _screen space_ values so convert back # to data space data_loc = ax.transData.inverted().transform(posA) v_shift = 0.1 * selfloop_ht @@ -1112,7 +1112,7 @@ def draw_networkx_edge_labels( ax : Matplotlib Axes object, optional Draw the graph in the specified Matplotlib axes. - rotate : bool (deafult=True) + rotate : bool (default=True) Rotate edge labels to lie parallel to edges clip_on : bool (default=True) |