Plotting max point. [message #79070] |
Mon, 30 January 2012 00:14  |
shambhu
Messages: 41 Registered: December 2011
|
Member |
|
|
Hi all,
From an arrays, i wan to take maximum value of those arrays and want
to plot those two points. Please tell me how to do this.
thank you
|
|
|
Re: Plotting max point. [message #79145 is a reply to message #79070] |
Tue, 31 January 2012 02:38  |
shambhu
Messages: 41 Registered: December 2011
|
Member |
|
|
Hi David,
I used following line of snippet. That also works, but it takes only
one array max value and associated value from the another to plot a
point.
PLOT,DATA.FIELD14,DATA.FIELD15,PSYM=2,MIN_VALUE=MAX(DATA.FIE LD14)
--
cheers,
|
|
|
Re: Plotting max point. [message #79146 is a reply to message #79070] |
Tue, 31 January 2012 02:33  |
shambhu
Messages: 41 Registered: December 2011
|
Member |
|
|
Hi David
following i tried today. I feel its working properly to plot, two max
points from two arrays.
MAP_SET, /CYLINDRICAL, 0, 0, /GRID, /CONTINENTS, $
TITLE = 'Simple Cylindrical Equidistant'
A = WHERE(DATA.FIELD14 EQ MAX(DATA.FIELD14))
B = WHERE(DATA.FIELD15 EQ MAX(DATA.FIELD15))
OPLOT,DATA.FIELD14[A:A],DATA.FIELD15[B:B],PSYM=2
Nothing wrong in this it seems.. :)
--
Cheers
|
|
|