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

Home » Public Forums » archive » Frustrated by 2 Data Plotting problems
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Frustrated by 2 Data Plotting problems [message #76323] Wed, 25 May 2011 12:57 Go to previous message
almost_like_a_metapho is currently offline  almost_like_a_metapho
Messages: 8
Registered: May 2011
Junior Member
I have 2 IDL plotting questions that have been giving me lots of
frustrations. I just upgraded to 8.1 (Mac), so can use whatever is
available.

I'm guessing these have both been done a zillion times, but I'm new
here (sorry, hi), and am having a devil of a time.

First: trying to figure out how to plot data and color code by
value.

I have x,y, and, z values in 3 columns (actually lons, lats, and
intensities of a profile)

In my simple minded way I wanted to plot x vs y, and set the color of
the dot to a value for z.

The only way I can think of doing this right now is to step through
every row and oplot each pair x[i],y[i] with the color for that pair
taken from z[i]. This makes for a long executing loop with large
files.

I'm guessing I'm missing doing something with a mapping procedure
(which I would be willing to learn), but is there any way to simply
turn the color value of plotting into a vector the same size as x&y?

Second:
I have many files I need to repeat processes with, generating data I
want to overplot on multiple plots. So far, it looks like I have to
make a choice: Load in one file and create my different plots for that
file, or load in all files and extract the data from each file for one
plot at a time, then going back again through all the files to create
the next plot.

A more detailed version of the problem.
From any given Data (D1, D2, D3....D100) I extract parameters P1, P2,
P3 that I want to plot.
As of now, I can loop through D1-D100 and overplot derived parameters
for P1, but in order to get P2, I have to loop through again. I can't
seem to plot P1, P2, and P3 from D1, then cycle through and overplot
data from D2 onto the correct plots.

I hope that description makes sense. If not I can elaborate.

N
[Message index]
 
Read Message
Read Message
Previous Topic: cgContour Change
Next Topic: Histogram Bug Update

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

Current Time: Wed Oct 08 18:56:37 PDT 2025

Total time taken to generate the page: 0.00883 seconds