<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
  <channel>
    <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/171927</link>
    <title>MATLAB Central Newsreader - Contour graph help!</title>
    <description>Feed for thread: Contour graph help!</description>
    <language>en-us</language>
    <copyright>&amp;copy;1994-2012 by MathWorks, Inc.</copyright>
    <webmaster>webmaster@mathworks.com</webmaster>
    <generator>MATLAB Central Newsreader</generator>
    <docs>http://blogs.law.harvard.edu/tech/rss</docs>
    <ttl>60</ttl>
    <image>
      <title>MathWorks</title>
      <url>http://www.mathworks.com/images/membrane_icon.gif</url>
    </image>
    <item>
      <pubDate>Wed, 02 Jul 2008 14:59:02 -0400</pubDate>
      <title>Contour graph help!</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/171927#440781</link>
      <author>Zijia Li</author>
      <description>I'm looking to make a contour graph with:&lt;br&gt;
X-axis being dates (increasing to the right)&lt;br&gt;
Y-axis being different lake water depth(increasing downward)&lt;br&gt;
and Color from red to blue on the graph indicating various&lt;br&gt;
temperatures with legend indicating which color is which&lt;br&gt;
temperature.&lt;br&gt;
This way you can find the temperature of the exact data and&lt;br&gt;
water depth by comparing the color at that point with the&lt;br&gt;
legend.&lt;br&gt;
How do I do this in matlab? I tried contourf but couldn't&lt;br&gt;
get it to work right. Any help? &lt;br&gt;
I'm using matlab 5.3 right now, but any if the method is for&lt;br&gt;
a newer version, it is welcome too since I might be able to&lt;br&gt;
get a copy of the newest version.&lt;br&gt;
&lt;br&gt;
Thanks</description>
    </item>
    <item>
      <pubDate>Wed, 02 Jul 2008 15:29:02 -0400</pubDate>
      <title>Re: Contour graph help!</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/171927#440788</link>
      <author>John D'Errico</author>
      <description>&quot;Zijia Li&quot; &amp;lt;triplezzz21@gmail.com&amp;gt; wrote in message &lt;br&gt;
&amp;lt;g4g53m$7mf$1@fred.mathworks.com&amp;gt;...&lt;br&gt;
&amp;gt; I'm looking to make a contour graph with:&lt;br&gt;
&amp;gt; X-axis being dates (increasing to the right)&lt;br&gt;
&amp;gt; Y-axis being different lake water depth(increasing downward)&lt;br&gt;
&amp;gt; and Color from red to blue on the graph indicating various&lt;br&gt;
&amp;gt; temperatures with legend indicating which color is which&lt;br&gt;
&amp;gt; temperature.&lt;br&gt;
&amp;gt; This way you can find the temperature of the exact data and&lt;br&gt;
&amp;gt; water depth by comparing the color at that point with the&lt;br&gt;
&amp;gt; legend.&lt;br&gt;
&amp;gt; How do I do this in matlab? I tried contourf but couldn't&lt;br&gt;
&amp;gt; get it to work right. Any help? &lt;br&gt;
&amp;gt; I'm using matlab 5.3 right now, but any if the method is for&lt;br&gt;
&amp;gt; a newer version, it is welcome too since I might be able to&lt;br&gt;
&amp;gt; get a copy of the newest version.&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; Thanks&lt;br&gt;
&lt;br&gt;
What did you try? What did not work? Contourf&lt;br&gt;
is the correct tool for this purpose.&lt;br&gt;
&lt;br&gt;
John</description>
    </item>
    <item>
      <pubDate>Wed, 02 Jul 2008 15:57:01 -0400</pubDate>
      <title>Re: Contour graph help!</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/171927#440792</link>
      <author>Zijia Li</author>
      <description>the problem is that the temperature matrix and the date/time&lt;br&gt;
matrix is 9694x1, so it gives Index exceeds matrix dimensions. &lt;br&gt;
How can I make it work?</description>
    </item>
    <item>
      <pubDate>Wed, 02 Jul 2008 16:03:03 -0400</pubDate>
      <title>Re: Contour graph help!</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/171927#440793</link>
      <author>Zijia Li</author>
      <description>&lt;br&gt;
&amp;gt; What did you try? What did not work? Contourf&lt;br&gt;
&amp;gt; is the correct tool for this purpose.&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; John&lt;br&gt;
The problem is that the temperature and date/time matrix are&lt;br&gt;
9694x1 so it is giving the error &quot;index exceeds matrix&lt;br&gt;
dimensions&quot; when I use contourf.&lt;br&gt;
any way to bypass this or some other way to do it?</description>
    </item>
    <item>
      <pubDate>Wed, 02 Jul 2008 16:25:04 -0400</pubDate>
      <title>Re: Contour graph help!</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/171927#440800</link>
      <author>hailiang shen</author>
      <description>first generate the mesh with 'meshgrid' function, and then &lt;br&gt;
use the 'contourf' to have the plot. &lt;br&gt;
&lt;br&gt;
of course your z data have to be set the same size as the &lt;br&gt;
mesh</description>
    </item>
    <item>
      <pubDate>Wed, 02 Jul 2008 16:40:03 -0400</pubDate>
      <title>Re: Contour graph help!</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/171927#440804</link>
      <author>John D'Errico</author>
      <description>&quot;Zijia Li&quot; &amp;lt;triplezzz21@gmail.com&amp;gt; wrote in message &lt;br&gt;
&amp;lt;g4g8rn$3bk$1@fred.mathworks.com&amp;gt;...&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; &amp;gt; What did you try? What did not work? Contourf&lt;br&gt;
&amp;gt; &amp;gt; is the correct tool for this purpose.&lt;br&gt;
&amp;gt; &amp;gt; &lt;br&gt;
&amp;gt; &amp;gt; John&lt;br&gt;
&amp;gt; The problem is that the temperature and date/time matrix are&lt;br&gt;
&amp;gt; 9694x1 so it is giving the error &quot;index exceeds matrix&lt;br&gt;
&amp;gt; dimensions&quot; when I use contourf.&lt;br&gt;
&amp;gt; any way to bypass this or some other way to do it?&lt;br&gt;
&lt;br&gt;
You can't &quot;bypass&quot; it.&lt;br&gt;
&lt;br&gt;
Your data is not in the form that contourf needs.&lt;br&gt;
How is contourf to know what how you wish it&lt;br&gt;
to interpret that vector of data? Do you have the&lt;br&gt;
mindreading toolbox installed? (This is a new&lt;br&gt;
one that they try to keep secret until they get&lt;br&gt;
all the bugs out of it. The biggest problem is&lt;br&gt;
the requirement that you install electric wires&lt;br&gt;
directly into your brain. Few people seem to like&lt;br&gt;
that idea.)&lt;br&gt;
&lt;br&gt;
Seriously, what does this vector of length 9694&lt;br&gt;
contain?&lt;br&gt;
&lt;br&gt;
John</description>
    </item>
    <item>
      <pubDate>Wed, 02 Jul 2008 16:52:26 -0400</pubDate>
      <title>Re: Contour graph help!</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/171927#440809</link>
      <author>roberson@ibd.nrc-cnrc.gc.ca (Walter Roberson)</author>
      <description>In article &amp;lt;g4gb13$rss$1@fred.mathworks.com&amp;gt;,&lt;br&gt;
John D'Errico &amp;lt;woodchips@rochester.rr.com&amp;gt; wrote:&lt;br&gt;
&lt;br&gt;
&amp;gt;Your data is not in the form that contourf needs.&lt;br&gt;
&amp;gt;How is contourf to know what how you wish it&lt;br&gt;
&amp;gt;to interpret that vector of data? Do you have the&lt;br&gt;
&amp;gt;mindreading toolbox installed? (This is a new&lt;br&gt;
&amp;gt;one that they try to keep secret until they get&lt;br&gt;
&amp;gt;all the bugs out of it. The biggest problem is&lt;br&gt;
&amp;gt;the requirement that you install electric wires&lt;br&gt;
&amp;gt;directly into your brain. Few people seem to like&lt;br&gt;
&amp;gt;that idea.)&lt;br&gt;
&lt;br&gt;
They found different algorithms that don't need the&lt;br&gt;
wires, and released it as the Hathor Toolbox (in&lt;br&gt;
Alpha release, anyhow.) I hear that the full functionality&lt;br&gt;
is delayed until they finish integrating it with&lt;br&gt;
the SimBioFuels Toolkit to deal with the garbage collection&lt;br&gt;
routines.&lt;br&gt;
-- &lt;br&gt;
&amp;nbsp;&amp;nbsp;&quot;Whenever there is a hard job to be done I assign it to a lazy&lt;br&gt;
&amp;nbsp;&amp;nbsp;man; he is sure to find an easy way of doing it.&quot;&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;-- Walter Chrysler</description>
    </item>
    <item>
      <pubDate>Wed, 02 Jul 2008 17:06:02 -0400</pubDate>
      <title>Re: Contour graph help!</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/171927#440812</link>
      <author>Zijia Li</author>
      <description>&quot;John D'Errico&quot; &amp;lt;woodchips@rochester.rr.com&amp;gt; wrote in&lt;br&gt;
message &amp;lt;g4gb13$rss$1@fred.mathworks.com&amp;gt;...&lt;br&gt;
&lt;br&gt;
&amp;gt; You can't &quot;bypass&quot; it.&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; Your data is not in the form that contourf needs.&lt;br&gt;
&amp;gt; How is contourf to know what how you wish it&lt;br&gt;
&amp;gt; to interpret that vector of data? Do you have the&lt;br&gt;
&amp;gt; mindreading toolbox installed? (This is a new&lt;br&gt;
&amp;gt; one that they try to keep secret until they get&lt;br&gt;
&amp;gt; all the bugs out of it. The biggest problem is&lt;br&gt;
&amp;gt; the requirement that you install electric wires&lt;br&gt;
&amp;gt; directly into your brain. Few people seem to like&lt;br&gt;
&amp;gt; that idea.)&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; Seriously, what does this vector of length 9694&lt;br&gt;
&amp;gt; contain?&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; John&lt;br&gt;
&lt;br&gt;
You are too funny! I wish I can grow up to be as funny as you. &lt;br&gt;
But if you are not going to help me why bother posting a&lt;br&gt;
respond. &lt;br&gt;
As I stated on my previous post the matrix are Temperature&lt;br&gt;
and date/time, so it is a list of Temperature and date/time&lt;br&gt;
that I imported from txt files. It is a year worth of&lt;br&gt;
temperature data of from Lake Michigan of different depth.&lt;br&gt;
We are trying to examine of effects of global warming.</description>
    </item>
    <item>
      <pubDate>Wed, 02 Jul 2008 17:07:01 -0400</pubDate>
      <title>Re: Contour graph help!</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/171927#440815</link>
      <author>Zijia Li</author>
      <description>&lt;br&gt;
&amp;gt; They found different algorithms that don't need the&lt;br&gt;
&amp;gt; wires, and released it as the Hathor Toolbox (in&lt;br&gt;
&amp;gt; Alpha release, anyhow.) I hear that the full functionality&lt;br&gt;
&amp;gt; is delayed until they finish integrating it with&lt;br&gt;
&amp;gt; the SimBioFuels Toolkit to deal with the garbage collection&lt;br&gt;
&amp;gt; routines.&lt;br&gt;
&amp;gt; -- &lt;br&gt;
&amp;gt;   &quot;Whenever there is a hard job to be done I assign it to&lt;br&gt;
a lazy&lt;br&gt;
&amp;gt;   man; he is sure to find an easy way of doing it.&quot;&lt;br&gt;
&amp;gt;                                               -- Walter&lt;br&gt;
Chrysler&lt;br&gt;
&lt;br&gt;
you too</description>
    </item>
    <item>
      <pubDate>Wed, 02 Jul 2008 17:25:03 -0400</pubDate>
      <title>Re: Contour graph help!</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/171927#440826</link>
      <author>John D'Errico</author>
      <description>&quot;Zijia Li&quot; &amp;lt;triplezzz21@gmail.com&amp;gt; wrote in message &lt;br&gt;
&amp;lt;g4gchq$hdn$1@fred.mathworks.com&amp;gt;...&lt;br&gt;
&amp;gt; &quot;John D'Errico&quot; &amp;lt;woodchips@rochester.rr.com&amp;gt; wrote in&lt;br&gt;
&amp;gt; message &amp;lt;g4gb13$rss$1@fred.mathworks.com&amp;gt;...&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; &amp;gt; You can't &quot;bypass&quot; it.&lt;br&gt;
&amp;gt; &amp;gt; &lt;br&gt;
&amp;gt; &amp;gt; Your data is not in the form that contourf needs.&lt;br&gt;
&amp;gt; &amp;gt; How is contourf to know what how you wish it&lt;br&gt;
&amp;gt; &amp;gt; to interpret that vector of data? Do you have the&lt;br&gt;
&amp;gt; &amp;gt; mindreading toolbox installed? (This is a new&lt;br&gt;
&amp;gt; &amp;gt; one that they try to keep secret until they get&lt;br&gt;
&amp;gt; &amp;gt; all the bugs out of it. The biggest problem is&lt;br&gt;
&amp;gt; &amp;gt; the requirement that you install electric wires&lt;br&gt;
&amp;gt; &amp;gt; directly into your brain. Few people seem to like&lt;br&gt;
&amp;gt; &amp;gt; that idea.)&lt;br&gt;
&amp;gt; &amp;gt; &lt;br&gt;
&amp;gt; &amp;gt; Seriously, what does this vector of length 9694&lt;br&gt;
&amp;gt; &amp;gt; contain?&lt;br&gt;
&amp;gt; &amp;gt; &lt;br&gt;
&amp;gt; &amp;gt; John&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; You are too funny! I wish I can grow up to be as funny as you. &lt;br&gt;
&amp;gt; But if you are not going to help me why bother posting a&lt;br&gt;
&amp;gt; respond. &lt;br&gt;
&lt;br&gt;
I AM helping you. But a vector is not obviously&lt;br&gt;
an array of data in any specific form. You need&lt;br&gt;
to explain what you have, else I'm just guessing.&lt;br&gt;
And those wires on the mindreading thingy keep&lt;br&gt;
shorting out on me. (It hurts like hell then.) On&lt;br&gt;
the other hand, its just like electroshock therapy.&lt;br&gt;
I've quit smoking, and I'm now down to only two&lt;br&gt;
personalities. ;-)&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
&amp;gt; As I stated on my previous post the matrix are Temperature&lt;br&gt;
&amp;gt; and date/time, so it is a list of Temperature and date/time&lt;br&gt;
&amp;gt; that I imported from txt files. It is a year worth of&lt;br&gt;
&amp;gt; temperature data of from Lake Michigan of different depth.&lt;br&gt;
&amp;gt; We are trying to examine of effects of global warming.&lt;br&gt;
&lt;br&gt;
Still not terribly clear. Why must I drag it out&lt;br&gt;
of you?&lt;br&gt;
&lt;br&gt;
Assuming that you have scattered data, then&lt;br&gt;
you must use either griddata or my own gridfit&lt;br&gt;
from the file exchange to convert it to a gridded&lt;br&gt;
array. Then use contourf.&lt;br&gt;
&lt;br&gt;
John</description>
    </item>
    <item>
      <pubDate>Wed, 02 Jul 2008 18:15:06 -0400</pubDate>
      <title>Re: Contour graph help!</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/171927#440832</link>
      <author>Zijia Li</author>
      <description>OK&lt;br&gt;
I have matrix: dateTime(9694x1 list of date and time of each&lt;br&gt;
time the sensor recorded the temperature), depth(11x1 all&lt;br&gt;
the defferent depth the data was taken), surfaceTemp(9694x1&lt;br&gt;
list of surface temperatures corresponding to the dateTime&lt;br&gt;
matrix), temp5(9694x1 list of temperatures at 5m below water&lt;br&gt;
surface corresponding to the dateTime matrix), temp10,&lt;br&gt;
temp15, temp20, temp30, temp50, temp70, temp90, temp110,&lt;br&gt;
temp140.&lt;br&gt;
&lt;br&gt;
Thanks to hailiang shen. I did&lt;br&gt;
&quot;[x,y]=meshgrid(dateTime,depth)&quot; to make the grid which&lt;br&gt;
creates x(11x9694) and y(11x9694). Then I transposed all the&lt;br&gt;
surfaceTemp-temp140 matrix becomes(1x9694). Then created a&lt;br&gt;
temp matrix that contains all the temperature matrix(11x9694).&lt;br&gt;
Then I did contourf(x,y,temp). This made a really weird&lt;br&gt;
graph. The axis are correct with depth on the y-axis and&lt;br&gt;
dateTime on the x-axis. But the temperature colors are werid&lt;br&gt;
with mostly all dark blue with some red, orange, and stuff.&lt;br&gt;
The legend has  for some reason a list of &quot;date0&quot; through&lt;br&gt;
&quot;date63&quot; corresponded with random colors(not continuous&lt;br&gt;
change from blue to red, but 5 different colors spreas&lt;br&gt;
randomly).&lt;br&gt;
Was that clear? It's hard to explain how a graph looks like.&lt;br&gt;
Any ideas?</description>
    </item>
    <item>
      <pubDate>Wed, 02 Jul 2008 18:42:01 -0400</pubDate>
      <title>Re: Contour graph help!</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/171927#440842</link>
      <author>Zijia Li</author>
      <description>This may be more clear&lt;br&gt;
here is the M-file code:&lt;br&gt;
load dateTime.txt&lt;br&gt;
load depth.txt&lt;br&gt;
load surfaceTemp.txt&lt;br&gt;
load temp5.txt&lt;br&gt;
load temp10.txt&lt;br&gt;
load temp15.txt&lt;br&gt;
load temp20.txt&lt;br&gt;
load temp30.txt&lt;br&gt;
load temp50.txt&lt;br&gt;
load temp70.txt&lt;br&gt;
load temp90.txt&lt;br&gt;
load temp110.txt&lt;br&gt;
load temp140.txt&lt;br&gt;
[x,y]=meshgrid(dateTime,depth);&lt;br&gt;
surfaceTemp=surfaceTemp.';&lt;br&gt;
temp5=temp5.';&lt;br&gt;
temp10=temp10.';&lt;br&gt;
temp15=temp15.';&lt;br&gt;
temp20=temp20.';&lt;br&gt;
temp30=temp30.';&lt;br&gt;
temp50=temp50.';&lt;br&gt;
temp70=temp70.';&lt;br&gt;
temp90=temp90.';&lt;br&gt;
temp110=temp110.';&lt;br&gt;
temp140=temp140.';&lt;br&gt;
temp=[surfaceTemp;temp5;temp10;temp15;temp20;temp30;temp50;temp70;temp90;temp110;temp140];&lt;br&gt;
contourf(x,y,temp)</description>
    </item>
    <item>
      <pubDate>Wed, 02 Jul 2008 18:44:40 -0400</pubDate>
      <title>Re: Contour graph help!</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/171927#440845</link>
      <author>roberson@ibd.nrc-cnrc.gc.ca (Walter Roberson)</author>
      <description>In article &amp;lt;g4gchq$hdn$1@fred.mathworks.com&amp;gt;,&lt;br&gt;
Zijia Li &amp;lt;triplezzz21@gmail.com&amp;gt; wrote:&lt;br&gt;
&lt;br&gt;
&amp;gt;You are too funny! I wish I can grow up to be as funny as you. &lt;br&gt;
&amp;gt;But if you are not going to help me why bother posting a&lt;br&gt;
&amp;gt;respond. &lt;br&gt;
&lt;br&gt;
A bit of humour helps keep us sane. It is unfortunately fairly&lt;br&gt;
common for people to present incomplete requirements or&lt;br&gt;
impossible requirements or requirements that we cannot figure&lt;br&gt;
out the meaning of; if we don't laugh about it sometimes then&lt;br&gt;
the frustration burns us out.&lt;br&gt;
-- &lt;br&gt;
&amp;nbsp;&amp;nbsp;&quot;Do not wait for leaders. Do it alone, person to person.&quot;&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;-- Mother Teresa</description>
    </item>
    <item>
      <pubDate>Wed, 02 Jul 2008 19:50:19 -0400</pubDate>
      <title>Re: Contour graph help!</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/171927#440854</link>
      <author>Zijia Li</author>
      <description>Ok &lt;br&gt;
So, I when I do contourf(x,y,temp,1000), it makes the graph&lt;br&gt;
with 1000 colors, but it has a lot of black lines. So I did&lt;br&gt;
contour(x,y,temp,2000). This makes the graph with 2000&lt;br&gt;
colors(takes like half and hour to make), which looks really&lt;br&gt;
good but the legend has 63 different color blocks with&lt;br&gt;
data1-data63 labeled by it. I don't know where it got the 63&lt;br&gt;
temperature labels from. &lt;br&gt;
What I want is one bar of color transitioning from blue to&lt;br&gt;
red labeled 0C on top by blue and 25C on the bottom by the red. &lt;br&gt;
&lt;br&gt;
Can I do that on matlab? If so, how?</description>
    </item>
    <item>
      <pubDate>Wed, 02 Jul 2008 20:16:43 -0400</pubDate>
      <title>Re: Contour graph help!</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/171927#440867</link>
      <author>NZTideMan</author>
      <description>On Jul 3, 7:50=A0am, &quot;Zijia Li&quot; &amp;lt;triplezz...@gmail.com&amp;gt; wrote:&lt;br&gt;
&amp;gt; Ok&lt;br&gt;
&amp;gt; So, I when I do contourf(x,y,temp,1000), it makes the graph&lt;br&gt;
&amp;gt; with 1000 colors, but it has a lot of black lines. So I did&lt;br&gt;
&amp;gt; contour(x,y,temp,2000). This makes the graph with 2000&lt;br&gt;
&amp;gt; colors(takes like half and hour to make), which looks really&lt;br&gt;
&amp;gt; good but the legend has 63 different color blocks with&lt;br&gt;
&amp;gt; data1-data63 labeled by it. I don't know where it got the 63&lt;br&gt;
&amp;gt; temperature labels from.&lt;br&gt;
&amp;gt; What I want is one bar of color transitioning from blue to&lt;br&gt;
&amp;gt; red labeled 0C on top by blue and 25C on the bottom by the red.&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; Can I do that on matlab? If so, how?&lt;br&gt;
&lt;br&gt;
This thread has been good fun....&lt;br&gt;
Don't panic!!  You're almost there.&lt;br&gt;
Instead of imposing a large number of contours, start by trying just a&lt;br&gt;
few - like 26 for example (i.e. 1 deg contour levels).&lt;br&gt;
contourf(x,y,temp,26)&lt;br&gt;
This will take less time.  Then once you've got things working you can&lt;br&gt;
increase the number of contour levels.&lt;br&gt;
&lt;br&gt;
The reason you saw lots of black lines when you had 2000 contour&lt;br&gt;
levels is that each contour is marked with a black line.  You can turn&lt;br&gt;
this off and have a smooth transition between colours by specifying:&lt;br&gt;
shading interp&lt;br&gt;
&lt;br&gt;
I think the 63 colour blocks come from the colormap you are using.&lt;br&gt;
You can play with this and get exactly the range of colours you want.&lt;br&gt;
Type help colormap to see the details of how to do it.</description>
    </item>
    <item>
      <pubDate>Thu, 03 Jul 2008 13:30:04 -0400</pubDate>
      <title>Re: Contour graph help!</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/171927#440994</link>
      <author>Zijia Li</author>
      <description>NZTideMan &amp;lt;mulgor@gmail.com&amp;gt; wrote in message&lt;br&gt;
&amp;lt;ca9f2103-0970-484d-afed-183e4be30104@w5g2000prd.googlegroups.com&amp;gt;...&lt;br&gt;
&amp;gt; On Jul 3, 7:50=A0am, &quot;Zijia Li&quot; &amp;lt;triplezz...@gmail.com&amp;gt; wrote:&lt;br&gt;
&amp;gt; &amp;gt; Ok&lt;br&gt;
&amp;gt; &amp;gt; So, I when I do contourf(x,y,temp,1000), it makes the graph&lt;br&gt;
&amp;gt; &amp;gt; with 1000 colors, but it has a lot of black lines. So I did&lt;br&gt;
&amp;gt; &amp;gt; contour(x,y,temp,2000). This makes the graph with 2000&lt;br&gt;
&amp;gt; &amp;gt; colors(takes like half and hour to make), which looks really&lt;br&gt;
&amp;gt; &amp;gt; good but the legend has 63 different color blocks with&lt;br&gt;
&amp;gt; &amp;gt; data1-data63 labeled by it. I don't know where it got the 63&lt;br&gt;
&amp;gt; &amp;gt; temperature labels from.&lt;br&gt;
&amp;gt; &amp;gt; What I want is one bar of color transitioning from blue to&lt;br&gt;
&amp;gt; &amp;gt; red labeled 0C on top by blue and 25C on the bottom by&lt;br&gt;
the red.&lt;br&gt;
&amp;gt; &amp;gt;&lt;br&gt;
&amp;gt; &amp;gt; Can I do that on matlab? If so, how?&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; This thread has been good fun....&lt;br&gt;
&amp;gt; Don't panic!!  You're almost there.&lt;br&gt;
&amp;gt; Instead of imposing a large number of contours, start by&lt;br&gt;
trying just a&lt;br&gt;
&amp;gt; few - like 26 for example (i.e. 1 deg contour levels).&lt;br&gt;
&amp;gt; contourf(x,y,temp,26)&lt;br&gt;
&amp;gt; This will take less time.  Then once you've got things&lt;br&gt;
working you can&lt;br&gt;
&amp;gt; increase the number of contour levels.&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; The reason you saw lots of black lines when you had 2000&lt;br&gt;
contour&lt;br&gt;
&amp;gt; levels is that each contour is marked with a black line. &lt;br&gt;
You can turn&lt;br&gt;
&amp;gt; this off and have a smooth transition between colours by&lt;br&gt;
specifying:&lt;br&gt;
&amp;gt; shading interp&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; I think the 63 colour blocks come from the colormap you&lt;br&gt;
are using.&lt;br&gt;
&amp;gt; You can play with this and get exactly the range of&lt;br&gt;
colours you want.&lt;br&gt;
&amp;gt; Type help colormap to see the details of how to do it.&lt;br&gt;
&lt;br&gt;
Thanks&lt;br&gt;
But &quot;Shading interp&quot; gives me &quot;warning:color data is not set&lt;br&gt;
for interpolated shading&quot; and it doesn't graph anything(the&lt;br&gt;
graph is blank) &lt;br&gt;
Any help?</description>
    </item>
    <item>
      <pubDate>Thu, 03 Jul 2008 14:55:07 -0400</pubDate>
      <title>Re: Contour graph help!</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/171927#441019</link>
      <author>Zijia Li</author>
      <description>I found the &quot;colorbar&quot; function which makes the color bar I&lt;br&gt;
wanted. The graph for now I put it on &quot;shading flat&quot; because&lt;br&gt;
&quot;shading interp&quot; still doesn't work.</description>
    </item>
    <item>
      <pubDate>Thu, 03 Jul 2008 17:58:02 -0400</pubDate>
      <title>Re: Contour graph help!</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/171927#441073</link>
      <author>Zijia Li</author>
      <description>so, no one knows why it's giving that error message?</description>
    </item>
    <item>
      <pubDate>Thu, 03 Jul 2008 18:11:34 -0400</pubDate>
      <title>Re: Contour graph help!</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/171927#441078</link>
      <author>roberson@ibd.nrc-cnrc.gc.ca (Walter Roberson)</author>
      <description>In article &amp;lt;g4j3va$8ba$1@fred.mathworks.com&amp;gt;,&lt;br&gt;
Zijia Li &amp;lt;triplezzz21@gmail.com&amp;gt; wrote:&lt;br&gt;
&amp;gt;so, no one knows why it's giving that error message?&lt;br&gt;
&lt;br&gt;
You are probably referring to the error message you mentioned earlier&lt;br&gt;
in the thread when you turned on shading interp,&lt;br&gt;
&quot;warning:color data is not set for interpolated shading&quot;&lt;br&gt;
&lt;br&gt;
The reason it is giving you that error is that ... you haven't&lt;br&gt;
set the color data needed for interpolated shading.&lt;br&gt;
For interpolated shading, the CData of FaceVertexCData properties&lt;br&gt;
must be specified as truecolor, RGB, one color per vertex.&lt;br&gt;
contourf does not happen to create the appropriate data structures&lt;br&gt;
that way.&lt;br&gt;
&lt;br&gt;
-- &lt;br&gt;
&amp;nbsp;&amp;nbsp;&quot;Man's life is but a jest,&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;A dream, a shadow, bubble, air, a vapor at the best.&quot;&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;-- George Walter Thornbury</description>
    </item>
    <item>
      <pubDate>Thu, 03 Jul 2008 18:42:02 -0400</pubDate>
      <title>Re: Contour graph help!</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/171927#441084</link>
      <author>Zijia Li</author>
      <description>roberson@ibd.nrc-cnrc.gc.ca (Walter Roberson) wrote in&lt;br&gt;
message &amp;lt;g4j4om$1v8$1@canopus.cc.umanitoba.ca&amp;gt;...&lt;br&gt;
&amp;gt; In article &amp;lt;g4j3va$8ba$1@fred.mathworks.com&amp;gt;,&lt;br&gt;
&amp;gt; Zijia Li &amp;lt;triplezzz21@gmail.com&amp;gt; wrote:&lt;br&gt;
&amp;gt; &amp;gt;so, no one knows why it's giving that error message?&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; You are probably referring to the error message you&lt;br&gt;
mentioned earlier&lt;br&gt;
&amp;gt; in the thread when you turned on shading interp,&lt;br&gt;
&amp;gt; &quot;warning:color data is not set for interpolated shading&quot;&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; The reason it is giving you that error is that ... you haven't&lt;br&gt;
&amp;gt; set the color data needed for interpolated shading.&lt;br&gt;
&amp;gt; For interpolated shading, the CData of FaceVertexCData&lt;br&gt;
properties&lt;br&gt;
&amp;gt; must be specified as truecolor, RGB, one color per vertex.&lt;br&gt;
&amp;gt; contourf does not happen to create the appropriate data&lt;br&gt;
structures&lt;br&gt;
&amp;gt; that way.&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; -- &lt;br&gt;
&amp;gt;   &quot;Man's life is but a jest,&lt;br&gt;
&amp;gt;    A dream, a shadow, bubble, air, a vapor at the best.&quot;&lt;br&gt;
&amp;gt;                                          -- George Walter&lt;br&gt;
Thornbury&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
How exactly do you do that?</description>
    </item>
    <item>
      <pubDate>Mon, 07 Jul 2008 14:57:33 -0400</pubDate>
      <title>Re: Contour graph help!</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/171927#441557</link>
      <author>Zijia Li</author>
      <description>&quot;Zijia Li&quot; &amp;lt;triplezzz21@gmail.com&amp;gt; wrote in message&lt;br&gt;
&amp;lt;g4j6hq$bha$1@fred.mathworks.com&amp;gt;...&lt;br&gt;
&amp;gt; roberson@ibd.nrc-cnrc.gc.ca (Walter Roberson) wrote in&lt;br&gt;
&amp;gt; message &amp;lt;g4j4om$1v8$1@canopus.cc.umanitoba.ca&amp;gt;...&lt;br&gt;
&amp;gt; &amp;gt; In article &amp;lt;g4j3va$8ba$1@fred.mathworks.com&amp;gt;,&lt;br&gt;
&amp;gt; &amp;gt; Zijia Li &amp;lt;triplezzz21@gmail.com&amp;gt; wrote:&lt;br&gt;
&amp;gt; &amp;gt; &amp;gt;so, no one knows why it's giving that error message?&lt;br&gt;
&amp;gt; &amp;gt; &lt;br&gt;
&amp;gt; &amp;gt; You are probably referring to the error message you&lt;br&gt;
&amp;gt; mentioned earlier&lt;br&gt;
&amp;gt; &amp;gt; in the thread when you turned on shading interp,&lt;br&gt;
&amp;gt; &amp;gt; &quot;warning:color data is not set for interpolated shading&quot;&lt;br&gt;
&amp;gt; &amp;gt; &lt;br&gt;
&amp;gt; &amp;gt; The reason it is giving you that error is that ... you&lt;br&gt;
haven't&lt;br&gt;
&amp;gt; &amp;gt; set the color data needed for interpolated shading.&lt;br&gt;
&amp;gt; &amp;gt; For interpolated shading, the CData of FaceVertexCData&lt;br&gt;
&amp;gt; properties&lt;br&gt;
&amp;gt; &amp;gt; must be specified as truecolor, RGB, one color per vertex.&lt;br&gt;
&amp;gt; &amp;gt; contourf does not happen to create the appropriate data&lt;br&gt;
&amp;gt; structures&lt;br&gt;
&amp;gt; &amp;gt; that way.&lt;br&gt;
&amp;gt; &amp;gt; &lt;br&gt;
&amp;gt; &amp;gt; -- &lt;br&gt;
&amp;gt; &amp;gt;   &quot;Man's life is but a jest,&lt;br&gt;
&amp;gt; &amp;gt;    A dream, a shadow, bubble, air, a vapor at the best.&quot;&lt;br&gt;
&amp;gt; &amp;gt;                                          -- George Walter&lt;br&gt;
&amp;gt; Thornbury&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; How exactly do you do that?&lt;br&gt;
&lt;br&gt;
Anyone?</description>
    </item>
    <item>
      <pubDate>Mon, 07 Jul 2008 16:34:01 -0400</pubDate>
      <title>Re: Contour graph help!</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/171927#441582</link>
      <author>Ilya Rozenfeld</author>
      <description>I don't think 'contourf' is appropriate command.  Try &lt;br&gt;
using 'pcolor'.&lt;br&gt;
&lt;br&gt;
&quot;Zijia Li&quot; &amp;lt;triplezzz21@gmail.com&amp;gt; wrote in message &lt;br&gt;
&amp;lt;g4tast$rop$1@fred.mathworks.com&amp;gt;...&lt;br&gt;
&amp;gt; &quot;Zijia Li&quot; &amp;lt;triplezzz21@gmail.com&amp;gt; wrote in message&lt;br&gt;
&amp;gt; &amp;lt;g4j6hq$bha$1@fred.mathworks.com&amp;gt;...&lt;br&gt;
&amp;gt; &amp;gt; roberson@ibd.nrc-cnrc.gc.ca (Walter Roberson) wrote in&lt;br&gt;
&amp;gt; &amp;gt; message &amp;lt;g4j4om$1v8$1@canopus.cc.umanitoba.ca&amp;gt;...&lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; In article &amp;lt;g4j3va$8ba$1@fred.mathworks.com&amp;gt;,&lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; Zijia Li &amp;lt;triplezzz21@gmail.com&amp;gt; wrote:&lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt;so, no one knows why it's giving that error message?&lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; &lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; You are probably referring to the error message you&lt;br&gt;
&amp;gt; &amp;gt; mentioned earlier&lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; in the thread when you turned on shading interp,&lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; &quot;warning:color data is not set for interpolated &lt;br&gt;
shading&quot;&lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; &lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; The reason it is giving you that error is that ... &lt;br&gt;
you&lt;br&gt;
&amp;gt; haven't&lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; set the color data needed for interpolated shading.&lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; For interpolated shading, the CData of &lt;br&gt;
FaceVertexCData&lt;br&gt;
&amp;gt; &amp;gt; properties&lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; must be specified as truecolor, RGB, one color per &lt;br&gt;
vertex.&lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; contourf does not happen to create the appropriate &lt;br&gt;
data&lt;br&gt;
&amp;gt; &amp;gt; structures&lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; that way.&lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; &lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; -- &lt;br&gt;
&amp;gt; &amp;gt; &amp;gt;   &quot;Man's life is but a jest,&lt;br&gt;
&amp;gt; &amp;gt; &amp;gt;    A dream, a shadow, bubble, air, a vapor at the &lt;br&gt;
best.&quot;&lt;br&gt;
&amp;gt; &amp;gt; &amp;gt;                                          -- George &lt;br&gt;
Walter&lt;br&gt;
&amp;gt; &amp;gt; Thornbury&lt;br&gt;
&amp;gt; &amp;gt; &lt;br&gt;
&amp;gt; &amp;gt; &lt;br&gt;
&amp;gt; &amp;gt; &lt;br&gt;
&amp;gt; &amp;gt; How exactly do you do that?&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; Anyone?&lt;br&gt;
&amp;gt; </description>
    </item>
  </channel>
</rss>

