01-19-2014 01:20 AM
I have a set of ranges for a particular quantity(i have a numeric controller as input).
Ranges are somewhat like 0-5, 5-10,10-15... etc. I need to plot the quantity on XY PLOT, NOT XY GRAPH.
I want to plot it such that for different ranges, the color of the point plotted will change. Eg. for the range, 0-5, the point is plotted in green, for range 10-15 it's plotted in red..etc.!
Can someone show me how to do that?
01-19-2014 01:43 AM - edited 01-19-2014 01:45 AM
@vasusri92 wrote:
I need to plot the quantity on XY PLOT, NOT XY GRAPH.
What's the difference here??
I think you want an xy graph with several plots, one for each color. Simply split the data into multiple sets, one for each color range, and show as many plots as you have colors. Do you have some typical data? Do you want a simple scatter plot, showing only the points or do you also want a line interpolation between points? (in the second case, it will become slightly more complicated because of the color switchover in the line).
Alternatively, you could map your data into an intensity graph.
01-19-2014 02:17 AM
When I said I want an XY plot, i meant I am using a draw plot function, and not a xy graph control to plot the points. That can't be changed since it is linked to some other application, whose plot needs to change color.
My basic requirement is as follows.
I input a positive value. there are different ranges for the input, say 0-5,5-10,10-15..etc..I need a code to designate each such range whith a particular color. Now the code should be such that it tests the number which is input, decides which range it comes under, and the point on plot changes its color to the color designated to that range.
01-19-2014 02:21 AM - edited 01-19-2014 02:22 AM
@vasusri92 wrote:
I am using a draw plot function, ...
I am not familiar with a "draw plot" function. Can you explain what that function is? Maybe attach a simplified version of your code?
01-19-2014 02:49 AM
Now i plan to add a numeric control input with requirements as stated above to this program.
01-19-2014 11:54 AM - edited 01-19-2014 11:57 AM
@vasusri92 wrote:
Now i plan to add a numeric control input with requirements as stated above to this program.
Why not just draw circles using low level image commands? Mapping data to pixels is simple math!
... and why is this "Urgent!!!".