From cd3fa6ad4addd6e94e2468db07534739a798bf57 Mon Sep 17 00:00:00 2001 From: BrunoLiegiBastonLiegi Date: Thu, 5 Dec 2024 08:27:43 +0100 Subject: [PATCH] fix: changed import of matplotlib.pyplot --- src/qibo/ui/mpldrawer.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/qibo/ui/mpldrawer.py b/src/qibo/ui/mpldrawer.py index 1fb06e992c..fd9c256353 100644 --- a/src/qibo/ui/mpldrawer.py +++ b/src/qibo/ui/mpldrawer.py @@ -7,6 +7,7 @@ from typing import Union import matplotlib +import matplotlib.pyplot as plt import numpy as np from qibo import gates @@ -377,7 +378,7 @@ def _swapx(ax, x, y, plot_params): def _setup_figure(nq, ng, gate_grid, wire_grid, plot_params): scale = plot_params["scale"] - fig = matplotlib.pyplot.figure( + fig = plt.figure( figsize=(ng * scale, nq * scale), facecolor=plot_params["facecolor"], edgecolor=plot_params["edgecolor"],