miranov25 / RootInteractive

5 stars 12 forks source link

3D plotting histograms #290

Open bulukutlu opened 1 year ago

bulukutlu commented 1 year ago

Hi, I started using the 3D plotting functionality and it works great for normal scatter plot use cases but I was wondering if there is a way to make it also work with histogramming. It seems to be working but for a configuration like below one also gets points for empty bins so one cannot actually see the real data.

histoArray = [
        {"name": "hitmap3D", "variables": ["globalX","globalY","globalZ"], "nbins":[100,100,100]}
]

figureArray = [
    [['bin_center_0'], ['bin_center_1'], {"varZ": "bin_center_2", "colorZvar": "bin_count",  "source":"hitmap3D"}],
    {"size":2, "legend_options": {"label_text_font_size": "13px"}}
]

You can find a dashboard here (https://cernbox.cern.ch/s/RvRvRnVKmILJJtl) where the central figure is the scatter version and the right most is histogram version of the 3D position of hits we recorded on a test beam where I am using this.

My question is can we add an option so that points with colorZvar values equal to zero can be chosen not to be drawn in the 3D plots?

Cheers, Berkin