Skip to content

Comments

fixed issue 4179 by updating matplotlib text scaling#4572

Merged
mergify[bot] merged 41 commits intoQiskit:masterfrom
sar49:fixissue4179
Jul 1, 2020
Merged

fixed issue 4179 by updating matplotlib text scaling#4572
mergify[bot] merged 41 commits intoQiskit:masterfrom
sar49:fixissue4179

Conversation

@sar49
Copy link
Contributor

@sar49 sar49 commented Jun 13, 2020

Summary

Fixes issue #4179

Details and comments

Multiplied the outputted font size by the self._scale and removed variable DEFAULT_SCALE altogether(4.3). There was only one instance where the scale parameter was used previously so removing DEFAULT_SCALE was much more efficient than dividing by 4.3 every line that I added in "scale._self * ".

@sar49 sar49 requested review from a team, maddy-tod and nonhermitian as code owners June 13, 2020 15:40
@1ucian0
Copy link
Member

1ucian0 commented Jun 16, 2020

MPL circuit drawer issues are piling up, since we dont have a good way to track changes on it. I'm putting this PR on hold (meaning "do not merge yet") until #4544 (or a similar solution) gets in.

@sar49 sar49 reopened this Jun 24, 2020
@sar49
Copy link
Contributor Author

sar49 commented Jun 24, 2020

My bad, meant to just do a regular comment

@sar49
Copy link
Contributor Author

sar49 commented Jun 24, 2020

I'm getting the following error when I start the checks. Is this where it is supposed to automatically access the binder or am I supposed to manually go to it and run it?

@1ucian0
Copy link
Member

1ucian0 commented Jun 25, 2020

I moved test_conditional to the new testing style in 8b88f1c.

@1ucian0
Copy link
Member

1ucian0 commented Jun 25, 2020

I moved test_plot_barriers to the new testing style in 762e9cc.

@1ucian0 1ucian0 marked this pull request as ready for review June 26, 2020 02:43
@1ucian0 1ucian0 assigned 1ucian0 and unassigned mtreinish Jul 1, 2020
@mergify mergify bot merged commit 46faf3f into Qiskit:master Jul 1, 2020
faisaldebouni pushed a commit to faisaldebouni/qiskit-terra that referenced this pull request Aug 5, 2020
* fixed issue 4391 by updating idle_wires() in dagcircuit and skipping over a error in text drawer

* fixed issue 4179 by updating matplotlib scaler

* fixed issue 4179 by updating matplotlib drawer and matplotlib testcase

* fixed issue 4179 by updating matplotlib drawer and updating matplotlib's barrier test case file

* Update dagcircuit.py

* Update dagcircuit.py

* Update dagcircuit.py

* Update dagcircuit.py

* Update matplotlib.py

* Update text.py

* Update text.py

* Update matplotlib.py

* Update test_circuit_matplotlib_drawer.py

* Update test_circuit_matplotlib_drawer.py

* Update test_circuit_matplotlib_drawer.py

* Update test_circuit_matplotlib_drawer.py

* Update test_circuit_matplotlib_drawer.py

* fixed issue 4563 by updating matplotlib drawer

* Fixes issie 4179

* Update matplotlib.py

* Update test_circuit_matplotlib_drawer.py

* Delete matplotlib_barriers_ref2.png

* Add files via upload

* Update matplotlib.py

* Update matplotlib.py

* Update visualization.py

* move test_conditional

* plot_barriers

* test/ipynb/mpl/references/plot_barriers.png no needed

* Update test_circuit_matplotlib_drawer.py

* Update test_circuit_matplotlib_drawer.py

* duplicated test

* test_scale

* new refs

Co-authored-by: Luciano Bello <luciano.bello@ibm.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants