From 5537f3d0da77d7fe626b15c58fd3c96c88c31c94 Mon Sep 17 00:00:00 2001 From: Mike Plachta Date: Fri, 6 Jun 2025 09:43:38 -0700 Subject: [PATCH] Increasing the default X-axis spacing for flow plotting (#2967) * Increasing the default X-axis spacing for flow plotting * removing unused imports --- src/crewai/flow/visualization_utils.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/crewai/flow/visualization_utils.py b/src/crewai/flow/visualization_utils.py index 781677276..202fb12d8 100644 --- a/src/crewai/flow/visualization_utils.py +++ b/src/crewai/flow/visualization_utils.py @@ -17,7 +17,7 @@ Example import ast import inspect -from typing import Any, Dict, List, Optional, Tuple, Union +from typing import Any, Dict, List, Tuple, Union from .utils import ( build_ancestor_dict, @@ -140,7 +140,7 @@ def compute_positions( flow: Any, node_levels: Dict[str, int], y_spacing: float = 150, - x_spacing: float = 150 + x_spacing: float = 300 ) -> Dict[str, Tuple[float, float]]: """ Compute the (x, y) positions for each node in the flow graph. @@ -154,7 +154,7 @@ def compute_positions( y_spacing : float, optional Vertical spacing between levels, by default 150. x_spacing : float, optional - Horizontal spacing between nodes, by default 150. + Horizontal spacing between nodes, by default 300. Returns -------