comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Plotting max point.
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
Plotting max point. [message #79070] Mon, 30 January 2012 00:14 Go to next message
shambhu is currently offline  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 Go to previous message
shambhu is currently offline  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 Go to previous message
shambhu is currently offline  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
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Re: Plotting max point.
Next Topic: Probability label relaxation

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Wed Oct 08 11:35:06 PDT 2025

Total time taken to generate the page: 0.00477 seconds