Closed pl0xz0rz closed 1 year ago
file:///lustre/alice/users/miranov/NOTES/alice-tpc-notes2/JIRA/ATO-614/dEdxWithGasGain.html
{'name': "yAxisTransform", "value":None, "options":[None, "sqrt", "lambda x: log(1+x)","lambda x: 1/sqrt(x)", "lambda x: x**exponentX", "lambda x,y: (y/x)", "lambda x,y: (y/x**exponentX)" ]},
->
(function anonymous(xs
) {
'use strict';
const ys = data_source.get_column(varY);
return xs.map((x, i) => (((x, y)=>((y) / (x)))(x, ys[i])));
})
Realistic use case works well: file:///lustre/alice/users/miranov/NOTES/alice-tpc-notes2/JIRA/ATO-614/dEdxWithGasGain.html
Possible problem with heatmap - can be solved later, and heatmap rotation to be added to the test
This PR adds 2D axis transforms. Example use case in test_bokehDrawSA.py - conversion between polar and cartesian coordinates How it works: When two input arguments are detected for
x_transform
ory_transform
they are used as the input X and Y coordinates.Real use case - switch to polar coordinates resp. rotation: https://github.com/pl0xz0rz/RootInteractive/blob/e1561e672d9fc14a221bbb2d648da072690ebd8e/RootInteractive/InteractiveDrawing/bokeh/test_bokehDrawSA.py#L59-L60