-
Notifications
You must be signed in to change notification settings - Fork 42
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 auto fading for off-diagonal blocks #50
Conversation
Something else to consider, it would be nice if the unfaded connections would come after the faded connections in the tikz file. Tiks works with layers so if faded connections are added after the un-faded connections they over-write the unfaded connections. |
Yeah good point, this can also go into that |
…added logic for determining faded processes
I fixed the faded process stuff. Some of the concerns are still not addressed but I don't think I will continue to work on this, so I think either someone else should take over this PR or we should merge as is and iterate later on for further improvements. @lamkina |
@nwu63 What are the remaining concerns? I can try and work on this if there's a demand for other features to be added/fixed. |
I've addressed everything on my end. However the logic is not super clean so it's up to the reviewers whether they think this is okay. I also did not address your concern with the ordering of the layers but that could be dealt with separately I think. |
Whats the status on this? Are there any remaining concerns or changes that need to done? |
I might remember incorrectly, but @lamkina wanted to make changes? Otw I can review this shortly |
I think this is done from my perspective now, I implemented the change I requested a while back. The behaviour of the auto fading is still not perfect because there are often multiple connections/inputs/outputs drawn on top of each other. To be sure of getting the intended fading you probably need to do all the fading manually but the |
@lamkina or @marcomangano can you review my latest changes and then merge if you're happy |
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.
I added logic to fix fading the connections in the tikz figure so I think this is ready to merge now.
Purpose
Basically, this is meant to make it easier to make a sequence of diagrams with different blocks faded. Instead of having to manually specify which off-diagonal components are faded, I've added some logic (with some options) to automatically decide if off-diagonal components connected to the faded diagonal components are to be faded.
This is still a fairly crude implementation, I'm happy to iterate on this PR to figure out a better API/implementation. Some initial thoughts:
Expected time until merged
As long as it takes.
Type of change
Testing
Checklist
flake8
andblack
to make sure the code adheres to PEP-8 and is consistently formatted