From a56ba3c2ec2a12e996787769bb76df396f702715 Mon Sep 17 00:00:00 2001 From: Mikael Henriksson <mike.zx@hotmail.com> Date: Thu, 31 Aug 2023 12:50:17 +0200 Subject: [PATCH] resources.py: add **kwargs to draw_exclusion_graph_coloring() --- b_asic/resources.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/b_asic/resources.py b/b_asic/resources.py index f9b060ed..301a1db1 100644 --- a/b_asic/resources.py +++ b/b_asic/resources.py @@ -98,6 +98,7 @@ def draw_exclusion_graph_coloring( color_dict: Dict[Process, int], ax: Optional[Axes] = None, color_list: Optional[Union[List[str], List[Tuple[float, float, float]]]] = None, + **kwargs, ) -> None: """ Helper function for drawing a colored exclusion graphs. @@ -132,6 +133,8 @@ def draw_exclusion_graph_coloring( A Matplotlib :class:`~matplotlib.axes.Axes` object to draw the exclusion graph. color_list : iterable of color, optional A list of colors in Matplotlib format. + **kwargs : Any + Named arguments passed on to :func:`networkx.draw_networkx` Returns ------- @@ -166,6 +169,7 @@ def draw_exclusion_graph_coloring( node_color=node_color_list, ax=ax, pos=nx.spring_layout(exclusion_graph, seed=1), + **kwargs, ) -- GitLab