Skip to content

Commit

Permalink
fix: changed import of matplotlib.pyplot
Browse files Browse the repository at this point in the history
  • Loading branch information
BrunoLiegiBastonLiegi committed Dec 5, 2024
1 parent a518e99 commit cd3fa6a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/qibo/ui/mpldrawer.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
from typing import Union

import matplotlib
import matplotlib.pyplot as plt
import numpy as np

from qibo import gates
Expand Down Expand Up @@ -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"],
Expand Down

0 comments on commit cd3fa6a

Please sign in to comment.