-
Notifications
You must be signed in to change notification settings - Fork 85
Use histogram fMinimum/fMaximum for lego plot (3D) Z axis range when … #70
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
Conversation
|
Is it not better to assign zmin/zmax values directly when drawing 3D axes? |
|
That is also missing - drawing labels instead of number for the axes in 3D |
|
Well, it is not complete anyway, since the bins with 0 entries are not drawn in 3D mode. So there is still some development to be done for lego plots... |
|
Do you want to implement this? |
|
I wish I could, but I'll be away later today... |
|
Ok, I will check later today. |
|
I am aware about this draw option. http://solutiondesign.com/blog/-/blogs/webgl-and-three-js-texture-mappi-1/ But this is not an easy task. |
|
I know, but this is not urgent anyway, I'll take a look for possible solutions sometime in the future |
Refactor code from #70 pull request
Also automatic scaling of very large labels implemented. Makes plot in #70 closer to original ROOT drawing.
|
In current code I add support of the labels in 3D plots: |
|
Excellent! Thanks! I forgot to look at this... |
|
BTW, will those changes also be applied in the master? |
Not yet - these are significant changes/improvements, not a bug fix. |
|
OK, fine with me |
|
Now there is support of several lego draw options like: lego0, lego2, legofb, legobb. Or via URL: http://jsroot.gsi.de/dev/?json=http://jsroot.gsi.de/files/tmp/th2.json.gz&opt=lego2,pal50,gridz LEGO drawing now implemented with pure BufferGeometry. I use extra index array to assign each vertex with histogram bin number, therefore I do not need normal geometry model for that. Still missing - highlight of the bins in such model, but this can be done separately. |
|
With latest changes produced picture is very close to the original one: |


…needed