05-31-2009 01:59 PM
Hi There,
I am trying to plot my 2D data file in intensity plot. I want to that color plot should be like Red as maximum value while Green as minimum and 0 value should be yellow. I looked at this example http://digital.ni.com/public.nsf/allkb/1ADFF221E27F5B5886256E6F007C7B58?OpenDocument , but in this example they are deciding marker beforehand. In my file i want to choose marker based on maxima and minima value.
Thanks
Yogesh
Solved! Go to Solution.
05-31-2009 02:07 PM - edited 05-31-2009 02:07 PM
05-31-2009 02:16 PM
Hi,
i tried this method and i do not know what is wrong but this one is not working. Also i want maxima and minima to defined by red and green (actually i am using 90% of maxima and minima to be this color and any value higher or lower then that as black color). But i want zero value to be yellow color.
Thanks
Yogesh
05-31-2009 02:17 PM - edited 05-31-2009 02:18 PM
05-31-2009 02:23 PM
It might be a stupid question but how do you make that array with color box in it?
Thanks
05-31-2009 02:25 PM
Yogesh9ic wrote:i tried this method and i do not know what is wrong but this one is not working.
Sorry, I dod not see your post. Of course you can just multiply the limits by 0.9. Of course you should also reasonable handle cases where them min is larger than zero, for example What is zero is not between max and min?
Anyway, you certainly have way too much code. Why are you reshaping a three-element 1D array to same??
Yogesh9ic wrote:But i want zero value to be yellow color.
Then don't calculate the average between max and min, just use a zero diagram constant for the middle element as in my example.
05-31-2009 02:28 PM
Yogesh9ic wrote:It might be a stupid question but how do you make that array with color box in it?
Get to the array palette and drop an empty array container on the diagram. Then go to the "graphics & sound...picture functions" palette and drop a color box constant in the array container. Resize to three elements and set the color of each. 😄
05-31-2009 02:38 PM
I tried your method but somehow marker color is not changing. Do i have to change anything on intensity plot so that it should take marker value from property node.
Thanks
Yogesh
05-31-2009 02:39 PM
05-31-2009 02:49 PM - edited 05-31-2009 02:50 PM
Here's a simple example. I did not change anything execpt to show the z-scale markers with 1 decimal digit (default is zero). This is just cosmetic.