From fb61e2d86ece6a342a721e7bff2441a1c60a12f5 Mon Sep 17 00:00:00 2001 From: Nicholas Landry Date: Thu, 26 Oct 2023 07:27:30 -0400 Subject: [PATCH] format with black and pylint --- .../api/tutorials/In Depth 3 - Drawing DiHypergraphs.ipynb | 2 +- xgi/drawing/draw.py | 4 ++-- xgi/drawing/draw_utils.py | 1 - 3 files changed, 3 insertions(+), 4 deletions(-) diff --git a/docs/source/api/tutorials/In Depth 3 - Drawing DiHypergraphs.ipynb b/docs/source/api/tutorials/In Depth 3 - Drawing DiHypergraphs.ipynb index 757cd3220..a51ef8495 100644 --- a/docs/source/api/tutorials/In Depth 3 - Drawing DiHypergraphs.ipynb +++ b/docs/source/api/tutorials/In Depth 3 - Drawing DiHypergraphs.ipynb @@ -43,7 +43,7 @@ "metadata": {}, "outputs": [], "source": [ - "diedges = [({0, 1}, {2}), ({1}, {4}), ({2, 3}, {4,5})]\n", + "diedges = [({0, 1}, {2}), ({1}, {4}), ({2, 3}, {4, 5})]\n", "DH = xgi.DiHypergraph(diedges)" ] }, diff --git a/xgi/drawing/draw.py b/xgi/drawing/draw.py index 0e2af93d0..18e983228 100644 --- a/xgi/drawing/draw.py +++ b/xgi/drawing/draw.py @@ -885,7 +885,7 @@ def draw_node_labels( Turn on clipping of node labels at axis boundaries. By default, True. zorder : int, optional - The vertical order on which to draw the labels. By default, None, + The vertical order on which to draw the labels. By default, None, in which case it is plotted above the last plotted object. Returns @@ -1724,7 +1724,7 @@ def draw_dihypergraph( iterations : int, optional Maximum number of iterations taken to recompute the layout. An original partial layout is computed solely based on the original nodes. - A full initial layout is then computed by simply adding the "edge" nodes + A full initial layout is then computed by simply adding the "edge" nodes at the barycenters. This initial layout may suffer from overlap between edge-nodes. After that, a spring layout is ran starting from the initial layout, and each iteration makes all of the nodes overlap less. diff --git a/xgi/drawing/draw_utils.py b/xgi/drawing/draw_utils.py index 5444b9542..bedec6bdd 100644 --- a/xgi/drawing/draw_utils.py +++ b/xgi/drawing/draw_utils.py @@ -4,7 +4,6 @@ import matplotlib.pyplot as plt import numpy as np -import seaborn as sb # for cmap "crest" from matplotlib.colors import ( LinearSegmentedColormap, ListedColormap,