colour.plotting.plot_automatic_colour_conversion_graph#
- colour.plotting.plot_automatic_colour_conversion_graph(filename: str, prog: Literal['circo', 'dot', 'fdp', 'neato', 'nop', 'twopi'] | str = 'fdp') Dot [source]#
Plot Colour automatic colour conversion graph using Graphviz and pyraphviz.
- Parameters:
filename (str) – Filename to use to save the image.
prog (Literal['circo', 'dot', 'fdp', 'neato', 'nop', 'twopi'] | str) – Graphviz layout method.
- Returns:
Pydot graph.
- Return type:
pydot.Dot
Notes
This definition does not directly plot the Colour automatic colour conversion graph but instead write it to an image.
Examples
>>> import tempfile >>> import colour >>> from colour import read_image >>> from colour.plotting import plot_image >>> filename = "{0}.png".format(tempfile.mkstemp()[-1]) >>> _ = plot_automatic_colour_conversion_graph(filename, "dot") ... >>> plot_image(read_image(filename))