-
Notifications
You must be signed in to change notification settings - Fork 111
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
Add option to colour wires in diagrams with frames #177
Conversation
…ram has frames but can be turned off using flag `color_wires=False`
@Ragunath1729 a few questions/remarks:
I'll create a more thorough review later. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi @Ragunath1729, please take a look at the following comments. Also, please don't forget to do flake8 and mypy related fixes. And please add docstrings where necessary.
|
@Ragunath1729 @neiljdo In one of the last commits, Ragunath added thickness to the wires, which looks good if the diagram is not very big. It is worth however to check how it looks in the really big diagrams with many nouns, probably not that good. Perhaps we should try to reduce a bit the thickness, keeping the wires thicker than before though? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@Ragunath1729 I've left some comments, please take a look.
|
# Conflicts: # tests/backend/test_circuit_drawing.py # tests/backend/test_drawing.py
* Tidy up call
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
Now we can draw wires with colours. the diagram has frames will be rendered with colours by default,
color_wires=False
.wires_width=1.5
in draw(). by default it uses 1.25 unitsCode
Mat_Backend
Tikz_backend
Screenshots
Tikz drawing