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

Home » Public Forums » archive » Plotting one point per loop
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: Plotting one point per loop [message #91395 is a reply to message #91391] Wed, 08 July 2015 11:15 Go to previous messageGo to previous message
Craig Markwardt is currently offline  Craig Markwardt
Messages: 1869
Registered: November 1996
Senior Member
On Wednesday, July 8, 2015 at 1:32:28 PM UTC-4, wdo...@oxy.edu wrote:
> *new user here!
>
> So I have a set of scans that make up one 'run', and I have a loop that calculates a certain value for each scan. I want to plot that value against the longitude of the scan, so that at the end I get a graph that plots the value vs. the longitude on one graph for all the scans in that run. If you need clarification let me know!
>
> I've got the variables figured out, but it doesn't want to let me plot a singular point on a graph, and then loop over it and plot more singular points on that same graph. I've tried just the plots command, with no luck.
>
> Thanks for the help!

;; Example longitude from 0 to 360, value from -100 to 100
PLOT, [0, 360], [-100,100], /nodata
for i = 0, Ndata-1 do begin
;; ... do whatever it takes to get your next point ...
lon_i = ...blah blah blah...
val_i = ...blah blah blah...
OPLOT, [lon_i], [lat_i], psym=1
endfor

Done!
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: READ, adn get data into an array from LARGE SIZE FILES
Next Topic: Leap Seconds and JULDAY()

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

Current Time: Wed Oct 08 13:58:21 PDT 2025

Total time taken to generate the page: 0.00244 seconds