06-28-2011 09:41 AM
Hi there.
I need to plot a force x position curve for a automated process and then some rectangles on it, that will be the regions of the graph that will be analyses ( if the graph passes through every rectangle I have, its fine ), but I am having some problem when plotting more than 4 of these rectangles ( picture attached ). Is there any limit of xy plots that can be done simultaneously on a XY graph? Does anyone knows other way to plot that does not cause this? I am generating every array used to form each of the rectangles and then merging everything and plotting ( there must be a easier way)
Fernando H. Moreno
Solved! Go to Solution.
06-28-2011 10:50 AM - edited 06-28-2011 10:50 AM
There is a practical limit, but I can assure you that 4 is WAY below that. It seems that the way you're building the graph is excessively complex. With an XY graph you provide an array for multiple plots, and each plot is a cluster of 2 arrays: an array of X value and an array of Y values. Thus, to plot your line and one rectangle you'd do something like this:
06-28-2011 06:50 PM
Actually Im doing way more than 4 plots, but I agree the way Im doing is very complex! will try your suggestion here!
06-28-2011 06:51 PM
Actually Im doing way more than 4 plots, but I agree the way Im doing is very complex! will try your suggestion here!
06-28-2011 06:59 PM
If you want to keep using xy graphs, consider switching to complex arrays to keep the data structures simpler. You can also graph all elements having the same color as a single plot, simply making gaps using a point cointaining NaN in between islands.
If you really need to graph all these squares, I recommend to switch to a picture indicator instead.