...
- put the lists of x and y values into list variables at the top of the macro and use these variables in the
cartesian_viewcartesianview()
call - to find the minimum value from a list, we need to convert it into a vector variable, then use the
minvalue()
function on the new vector- hint:
min_x = minvalue(vector(x_values))
- hint:
- similarly for the maximum
- we need to do this for min and max of both x and y variables to get what we need to set X Min, X Max, Y Min and Y Max correctly.
- now adjust each value by 10%
You should now be able to change the data values at the top of the macro, and the plot should still look ok.
...