Path: news.mathworks.com!not-for-mail
From: "Zijia Li" <triplezzz21@gmail.com>
Newsgroups: comp.soft-sys.matlab
Subject: Re: Contour graph help!
Date: Wed, 2 Jul 2008 18:15:06 +0000 (UTC)
Organization: University of Michigan
Lines: 26
Message-ID: <g4ggja$d0o$1@fred.mathworks.com>
References: <g4g53m$7mf$1@fred.mathworks.com>
Reply-To: "Zijia Li" <triplezzz21@gmail.com>
NNTP-Posting-Host: webapp-05-blr.mathworks.com
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
X-Trace: fred.mathworks.com 1215022506 13336 172.30.248.35 (2 Jul 2008 18:15:06 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Wed, 2 Jul 2008 18:15:06 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 1431276
Xref: news.mathworks.com comp.soft-sys.matlab:477186



OK
I have matrix: dateTime(9694x1 list of date and time of each
time the sensor recorded the temperature), depth(11x1 all
the defferent depth the data was taken), surfaceTemp(9694x1
list of surface temperatures corresponding to the dateTime
matrix), temp5(9694x1 list of temperatures at 5m below water
surface corresponding to the dateTime matrix), temp10,
temp15, temp20, temp30, temp50, temp70, temp90, temp110,
temp140.

Thanks to hailiang shen. I did
"[x,y]=meshgrid(dateTime,depth)" to make the grid which
creates x(11x9694) and y(11x9694). Then I transposed all the
surfaceTemp-temp140 matrix becomes(1x9694). Then created a
temp matrix that contains all the temperature matrix(11x9694).
Then I did contourf(x,y,temp). This made a really weird
graph. The axis are correct with depth on the y-axis and
dateTime on the x-axis. But the temperature colors are werid
with mostly all dark blue with some red, orange, and stuff.
The legend has  for some reason a list of "date0" through
"date63" corresponded with random colors(not continuous
change from blue to red, but 5 different colors spreas
randomly).
Was that clear? It's hard to explain how a graph looks like.
Any ideas?