I’m looking for a way to set the bounds of a graph to display the previous two graphs and not cut anything off. I feel like I should be able to use a min/max function somehow here but syntax is getting me hung up. The first graph is graph1
and the second is translateGraph
Here is what I tried among other things…
xmin = min(graph1.number("x_{mi}"),graphTranslate.number("x_{mi}"))
The min function will evaluate a list and find the minimum value. If you want to use two numbers you can use simpleFunction:
xmin=simpleFunction("\\min(a,b)","a","b").evaluateAt(graph1.number("x_{mi}"),graphTranslate.number("x_{mi}"))
1 Like
This is perfect, thanks Jay!