02-14-2012 01:50 PM
I have a program that runs a set of parameters once forward, and graphs the results on graph "A" and then runs the same parameters, but backwards, and graphs those results on graph "B". The graphs are within "For Loops" so they have a hard time communication with one another. I would like the two sets of coordinates to display on one graph
Solved! Go to Solution.
02-14-2012 02:12 PM
If you would re-architect your code as a state machine, it would only need one loop. Try it. 😄
(How fast are the loops? Do you need to be able to itereactively watch as the graphs build or is it sufficient to graph everything at once at the end?)
Also, why do you do all these succesive write to file operations? Can't you concatenate the strings and append them to the file in one operation?
02-14-2012 02:30 PM
I didnt write most of the program my job was just to alter it, I will try that. I was able to make two more graphs which displayed the two xy plots overlayed as you described. Ill look into the saving alteration later on, thank you!
02-14-2012 02:37 PM
Also, is there any way to format a graph such that the y-scale minimum is 0 while the maximum is autoascale?
02-14-2012 02:45 PM
@nbenz wrote:
Also, is there any way to format a graph such that the y-scale minimum is 0 while the maximum is autoascale?
No, but you can turn off autoscaling and set the axis limits programmatically using property nodes.
For example set the lower to zero and the upper based on max([y]).