-
Notifications
You must be signed in to change notification settings - Fork 8
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
Support for anisotropic data. #8
Conversation
a8b7388
to
b32784a
Compare
b32784a
to
c41a012
Compare
slicer1 = DashVolumeSlicer(app, vol1, axis=1, origin=origin, scene_id="myscene") | ||
slicer2 = DashVolumeSlicer(app, vol1, axis=0, origin=origin, scene_id="myscene") | ||
slicer3 = DashVolumeSlicer( | ||
app, vol2, axis=0, origin=origin, spacing=spacing, scene_id="myscene" | ||
) |
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.
@emmanuelle see how we use different data in the 3d slicer, and connect it up by using a common scene_id
:)
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 really like this example, haha
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.
really cool :-)
Thanks @almarklein ! Looks good to me. With this PR I think it's now possible to adapt https://github.com/plotly/dash-sample-apps/blob/master/apps/dash-covid-xray/app.py to use the slicer (the data are indeed anisotropic). Would you like to try it or would you prefer someone else to adapt the app so that you focus on development? As you wish, both are fine. |
Yeah, I think adapting that example would be a really nice exercise to see how the API holds up, so I think I'll have a go myself! |
reverse_y (bool): Whether to reverse the y-axis, so that the origin of | ||
the slice is in the top-left, rather than bottom-left. Default True. | ||
(This sets the figure's yaxes ``autorange`` to either "reversed" or True.) |
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.
Also added this.
rebased
This:
spacing
andorigin
arguments to specify the position and scale of a volume.slicer_with_1_plus_2_views.py
example to include one view with downsampled data.reverse_y
argument.