In order to speed up one step of a workflow, I am trying to write a script that automatically sets the axis limits of all Y axes in a graph builder to certain values (quantiles) that can be computed from the displayed data.
The plan was:
- Get the axis labels
- Compute the desired limits by using the corresponding columns in the data table
- Set the limits accordingly.
This turns out to be more complicated than expected in the first place, because a local data filter can be used, labels can be modified, etc.
So I would rather like to get the different Y values for each axis directly from the graph builder. How to get the values from specific axes?
E.g. If I have
R = Current Report();
AB = R[axisbox(2)] ;
ab_min = -100; // How to access the value list containing all the values that are used by default to compute axis limits of AB here?
ab_max = 100;
AB << Min(ab_min);
AB << Max(ab_max);
By using "the cross" I ended up with some FrameBoxes, but I could not figure out how to get values from them.
Any ideas or better way how to do it?
Thanks Robbb