draw(filename=None, style=None, raw=False)¶
Draw the pass manager.
filename (str) – file path to save image to.
style (dict) – keys are the pass classes and the values are the colors to make them. An example can be seen in the DEFAULT_STYLE. An ordered dict can be used to ensure a priority coloring when pass falls into multiple categories. Any values not included in the provided dict will be filled in from the default dict.
raw (bool) – If
True, save the raw Dot output instead of the image.
an in-memory representation of the pass manager, or
Noneif no image was generated or Pillow is not installed.
- Return type
ImportError – when nxpd or pydot not installed.