Skip to content

Commit

Permalink
prevent showing plots
Browse files Browse the repository at this point in the history
  • Loading branch information
nmheim committed Oct 11, 2023
1 parent b110f23 commit ec2d9f2
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion docs/digital_analog_qc/pulser-basic.md
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,7 @@ params = {
"th21": torch.rand(1), # rad
}

model.assign_parameters(params).draw(draw_phase_area=True, show=True)
model.assign_parameters(params).draw(draw_phase_area=True, show=False)
from docs import docsutils # markdown-exec: hide
print(docsutils.fig_to_html(plt.gcf())) # markdown-exec: hide
```
Expand Down
4 changes: 2 additions & 2 deletions docs/tutorials/register.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ axs = axs.flatten()
for i, (args, xl, yl) in enumerate(argss):
reg = Register.lattice(*args)
plt.sca(axs[i])
reg.draw()
reg.draw(show=False)
axs[i].set_title(f"{args[0]}")
axs[i].set(aspect="equal")
axs[i].set_xlim(*xl)
Expand Down Expand Up @@ -59,7 +59,7 @@ from qadence import Register
reg = Register.honeycomb_lattice(2, 3)
import matplotlib.pyplot as plt # markdown-exec: hide
plt.clf() # markdown-exec: hide
reg.draw()
reg.draw(show=False)
from docs import docsutils # markdown-exec: hide
fig = plt.gcf() # markdown-exec: hide
fig.set_size_inches(3, 3) # markdown-exec: hide
Expand Down
2 changes: 1 addition & 1 deletion docs/tutorials/state_init.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ from qadence import product_block, tag, hea, QuantumCircuit
from qadence.draw import display

state_prep_block = product_block("01")
display(state_prep_block)
# display(state_prep_block)

# Let's now prepare a circuit.
n_qubits = 4
Expand Down

0 comments on commit ec2d9f2

Please sign in to comment.