Replies: 2 comments 2 replies
-
|
It's a good suggestion. But one challenge is that the locations that the data cursor snaps to is always the corners of the voxels, which means that for every xyz position the data cursor shows, there are 8 voxels equally far away from it. I'm not sure what the best way to deal with this is. One possibility is to let the index shown be fractional, such as stating "50.5" as the index that the cursor is at. But this also looks a bit ugly and counterintuitive. What do you think? |
Beta Was this translation helpful? Give feedback.
-
|
Now I made a more thorough check-up of the problem (Including checking possible UI alternatives to data tip option, as well as options/properties available for DataCursorManager), but I am afraid that I didn't find any easy/great solution on my side. Two options that I see as most sensible are:
The option 2 could be interesting in case plot values (fluence, temperature etc.) are added to data tips in the future, but given the fact that this would complicate things and take some effort and time, I guess that for now I would go with option 1 or don't make any changes to code at all p.s.: When writing the custom update function, I probably should have included the original function. It is |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Dear Anders and Dominik,
could some feature that shows the exact voxel number (Nx,Ny,Nz) for specific voxel (f.e., the one that is pointed on by cursor) be added to the code? As far as I am aware, such option currently isnt available, but it could be useful in some cases, such as when we are dealing with very small media.
To roughly illustrate what I mean (of course, this concept can be also achieved in many other ways), here is ad-hoc code that I added to NdimSliderPlot.m (at the end of NdimSliderPlot function) so that the data tip option for matlab graphs shows voxel number in addition to their location:
What I get can be seen on image below (from Example4_BloodVeseel.m):
Best regards, Tilen
Beta Was this translation helpful? Give feedback.
All reactions