mlreco.visualization.plotly_layouts module¶
-
mlreco.visualization.plotly_layouts.dualplot(traces_left, traces_right, spatial_size=768, layout=None, titles=['Left', 'Right'])[source]¶
-
mlreco.visualization.plotly_layouts.trace_particles(particles, color='id', size=1, scatter_points=False, scatter_ppn=False, highlight_primaries=False, colorscale='rainbow')[source]¶ Get Scatter3d traces for a list of <Particle> instances. Each <Particle> will be drawn with the color specified by its unique particle ID.
- Inputs:
particles: List[Particle]
- Returns
List[go.Scatter3d]
- Return type
traces
-
mlreco.visualization.plotly_layouts.trace_interactions(interactions, color='id', colorscale='rainbow')[source]¶ Get Scatter3d traces for a list of <Interaction> instances. Each <Interaction> will be drawn with the color specified by its unique interaction ID.
- Inputs:
particles: List[Particle]
- Returns
List[go.Scatter3d]
- Return type
traces
-
mlreco.visualization.plotly_layouts.plotly_layout3d(ranges=None, titles=None, **kwargs)[source]¶ Produces go.Layout object for a certain format.
- INPUTS
ranges can be used to specify the plot region in (x,y,z) directions. The default (None) will determine the range to include all points. Alternatively can be an array of shape (3,2) specifying (x,y,z) axis (min,max) range for a display, or simply a list of points with shape (N,3+) where [:,0],[:,1],[:,2] correspond to (x,y,z) values and the plotting region is decided by measuring the min,max range in each coordinates. This last option is useful if one wants to define the region based on a set of points that is not same as what’s plotted.
titles can be specified as a length 3 array of strings for (x,y,z) axis title respectively
- OUTPUTS
The return is go.Layout object that can be given to go.Figure for visualization (together with traces)