I want to insert a graph inside a while loop which will build gradually on each iteration. The X and Y axis ranges will be prespecified outside the loop and the expected curve will build while the code is running. Please have a look on the attached script. The output is pretty much the input squared and the curve on the graph at the end of the code execution should look like the one below
@Gregory thank you for your suggestions. They seem to work however I can not figure out hot to set-up properly the X axis on the chart. For example my X values need to be x_min=0 and x_max=6 and stay like this for the entire code execution.
Seems to work that way. The only minor issue is that the XScale.Increment property does not seem to respond to its input. The Y one does. Any ideas on how to fix that?
I don't know if you are looking for that, but if you want to see all the X markers from 0 to 6 you have to set xscale.style property to 0. You can also set it in the right click menu of the chart.