Skip to content

Commit

Permalink
Remove matplot lib
Browse files Browse the repository at this point in the history
  • Loading branch information
daniel-mills-cqc committed Apr 16, 2024
1 parent 32f0be5 commit ccfe92a
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions automated_benchmarking/automated_benchmarking.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@
from pytket_benchmarking.compiler_benchmarking.pass_runner import TimedPassRunner
from pytket_benchmarking.compiler_benchmarking import CompiledCircuitsManager
from pytket_benchmarking.compiler_benchmarking.experiment_analyser import CompiledCircuitExperiment
import matplotlib.pyplot as plt
# import matplotlib.pyplot as plt
from typing import Optional, List
from rich.progress import track
# from rich.progress import track
from pytket.passes import SequencePass, DecomposeBoxes


Expand Down Expand Up @@ -78,7 +78,7 @@ def compile(
def plot(
suite_path: Annotated[Path, typer.Argument(help="Path to circuit suite.")],
compiled_path: Annotated[Path, typer.Argument(help="Path to compiled circuits.")],
show: Annotated[bool, typer.Option("--show", "-s", help='Display plot.')] = False,
# show: Annotated[bool, typer.Option("--show", "-s", help='Display plot.')] = False,
plot_path: Annotated[
Optional[Path],
typer.Argument(
Expand Down Expand Up @@ -111,8 +111,8 @@ def plot(
compiled_func=compiled_func,
original_func=original_func,
)
if show:
plt.show()
# if show:
# plt.show()

if plot_path is not None:
fig.savefig(fname=plot_path)
Expand Down

0 comments on commit ccfe92a

Please sign in to comment.