diff --git a/analysis.py b/analysis.py index 48e656b..fb9a20d 100644 --- a/analysis.py +++ b/analysis.py @@ -84,6 +84,7 @@ class Params(BaseModel): def sociogram_image(params: Params): + plt.close() plt.figure(figsize=(16, 10), facecolor="none") ax = plt.gca() ax.set_facecolor("none") # Set the axis face color to none (transparent) diff --git a/src/Analysis.tsx b/src/Analysis.tsx index 064ca5c..1d1fb0f 100644 --- a/src/Analysis.tsx +++ b/src/Analysis.tsx @@ -24,7 +24,7 @@ export default function Analysis() { edgeWidth: 1, arrowSize: 20, fontSize: 10, - distance: 0.2, + distance: 2, }); const [showControlPanel, setShowControlPanel] = useState(false); const [loading, setLoading] = useState(false); @@ -52,9 +52,9 @@ export default function Analysis() { return (