Skip to content

Commit

Permalink
Merge pull request #280 from mehatamm/master
Browse files Browse the repository at this point in the history
Change draw_matplotlib function to show the figure when in shell
  • Loading branch information
jvdwetering authored Dec 23, 2024
2 parents a84d256 + bc43335 commit b197b51
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions pyzx/drawing.py
Original file line number Diff line number Diff line change
Expand Up @@ -270,9 +270,12 @@ def draw_matplotlib(
ax.text(x-5,y,g.scalar.to_latex())

ax.axis('equal')
plt.close()
if get_mode() == "shell":
plt.show()
else:
plt.close()
return fig1
#plt.show()


# Provides functions for displaying pyzx graphs in jupyter notebooks using d3

Expand Down

0 comments on commit b197b51

Please sign in to comment.