Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update matplotlib circuit drawing to work with matplotlib v3.5 #1899

Merged
merged 3 commits into from
Nov 16, 2021

Conversation

albi3ro
Copy link
Contributor

@albi3ro albi3ro commented Nov 16, 2021

The CI tests were failing when matplotlib updated to version 3.5.

Now, the arrow in the measurement box was added twice to the axes. I therefore use a different call signature. ax.arrow creates the arrow and adds them to the axes. Before, I created them and then manually added it to the axes.

@albi3ro albi3ro added the bug 🐛 Something isn't working label Nov 16, 2021
@codecov
Copy link

codecov bot commented Nov 16, 2021

Codecov Report

Merging #1899 (a0f9686) into master (927c4c6) will decrease coverage by 0.00%.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #1899      +/-   ##
==========================================
- Coverage   98.98%   98.98%   -0.01%     
==========================================
  Files         219      219              
  Lines       16513    16512       -1     
==========================================
- Hits        16345    16344       -1     
  Misses        168      168              
Impacted Files Coverage Δ
pennylane/circuit_drawer/mpldrawer.py 100.00% <100.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 927c4c6...a0f9686. Read the comment docs.

Copy link
Member

@josh146 josh146 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me 👍 Minor question; does this change remain compatible with matplotlib versions < 3.5 as well?

@josh146 josh146 merged commit 5223be4 into master Nov 16, 2021
@josh146 josh146 deleted the mpl_testfix branch November 16, 2021 11:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug 🐛 Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants