-
Notifications
You must be signed in to change notification settings - Fork 270
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
first cut at showing multiple transfer functions on VR #2567
Conversation
also fix latex rendering bug in exponent
note also, in producing that example, I fixed a bug in the latex rendering -- the exponent was not places in |
I just updated this with a fix for the case where not all the render sources have a transfer function (e.g., a volume source + a point source) |
I've synced this up with |
can I get some guidance on what people would like to see for this PR in order to get it merged? |
Hi @zingale, I'm so sorry I dropped the ball on reviewing this. Would you mind merging or rebasing your PR with the current master branch so we can see how the tests look (and the conflicts are resolved)? I'm super excited about this feature and I think it will be a great addition to the project! |
Wow it's been a while. |
I'll sync this up today. Thanks for the poke |
A couple more fixes are needed. Most of them should be automatable with pre-commit. |
I don't know about the runtime question -- it takes a few minutes on my workstation. But this is not the only VR of IsolatedGalaxy, so it can't be that much more expensive than existing ones in the cookbook. |
Fair enough |
Co-authored-by: Clément Robert <cr52@protonmail.com>
Co-authored-by: Clément Robert <cr52@protonmail.com>
Co-authored-by: Clément Robert <cr52@protonmail.com>
I think I've addressed all of the comments now |
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.
Indeed. So I think we'd need a second approval to merge this. I'll advertise it on slack. Thank you @zingale !
Co-authored-by: Clément Robert <cr52@protonmail.com>
Co-authored-by: Clément Robert <cr52@protonmail.com>
Looks like the docs build timed out. Let's hope that's not reproducible |
I just noticed that I made the render big, so I'll reduce it to speed it up for the cookbook. I'll update in a sec. |
okay, I made it reuse the existing render and made it smaller. At some point in the future, it would be good to separate the size of the rendering from the save_annotated image size, but I think that is a separate PR. I also fixed a bug from my merging that lost the ability to set the size of the transfer function labels. Now I can make them more appropriately sized. |
thanks @matthewturk and @neutrinoceros !! |
PR Summary
Currently
save_annotated()
doesn't work correctly if we have multiple volume sources in the volume render. This is an attempt to fix that by looping over sources and showing all the transfer functions. With multiple transfer functions, we don't use the colorbar axis, but instead define a rectangle (tf_rect
) in which to place the transfer functions. This is subdivided vertically to account for the number of render sources and the transfer functions are shown there. This gives some control over the location and sizing of the legends.PR Checklist