diff --git a/pyzx/drawing.py b/pyzx/drawing.py index 2933b6ea..1c619141 100644 --- a/pyzx/drawing.py +++ b/pyzx/drawing.py @@ -58,8 +58,6 @@ def draw(g: Union[BaseGraph[VT,ET], Circuit], labels: bool=False, **kwargs) -> A labels = labels or settings.show_labels if get_mode() == "shell": - if plt is None: - raise ImportError("This function requires matplotlib.") return draw_matplotlib(g, labels, **kwargs) elif get_mode() == "browser": return draw_d3(g, labels, **kwargs)