Skip to content

Latest commit

 

History

History
89 lines (71 loc) · 5.07 KB

File metadata and controls

89 lines (71 loc) · 5.07 KB

README for parameterArray

The ParameterArray is used for the parameterisation of the figures, histograms, selection, weights and the graphic properties on the client.

The declarative programming used in bokehDrawSA is a type of coding where developers express the computational logic without having to programme the control flow of each process. This can help simplify coding, as developers only need to describe what they want the programme to achieve, rather than explicitly prescribing the steps or commands required to achieve the desired result.

bokehDrawSA.fromArray(df, None, figureArray, widgetParams, layout=figureLayoutDesc, tooltips=tooltips, parameterArray=parameterArray,
                          widgetLayout=widgetLayoutDesc, sizing_mode="scale_width", nPointRender=300,
                           aliasArray=aliasArray, histogramArray=histoArray,arrayCompression=arrayCompression)

For example usage see also Jupyter notebook tutorial file:

Bokeh parameters are declared in parameterArray. The widgets that contain parameters must be added to the widget array and the widget layout. To simplify the creation and use of the parameter array, a dictionary of predefined parameters has been created.

parameterArray options:

[name,value,options]

  • name - the name with which it is indexed in figureArray / aliasArray.
  • value - the initial value - the option "default" must be specified, otherwise it will be initialised with the first value in the option list
  • {options} - the options that the parameter can have as a value.

Options:

  • range - special option if controlled by a slider, the range that the variable can occupy.
  • options - options for select e.g list of variables to draw

Controllable by parameterArray:

  • parameters of figure array
    • varX, varY, varZ
  • paramters for histograms:
    • axis variables
    • nBins
    • ranges
  • parametrizible functions in aliasArray
  • Graphics parameters:
    • marker size
    • legend options - in this example we set the legend font size
  • functions in aliasArray

Predefined parameters

https://github.com/miranov25/RootInteractive/blob/master/RootInteractive/InteractiveDrawing/bokeh/bokehInteractiveParameters.py#L1-L7

Example parameter array

test_Alias.py

https://github.com/miranov25/RootInteractive/blob/master/RootInteractive/InteractiveDrawing/bokeh/test_Alias.py

test_bokehClientHistogram.py