Re: HELP!!! Newbie question
- To: mathgroup at smc.vnet.net
- Subject: [mg40825] Re: [mg40800] HELP!!! Newbie question
- From: sean kim <shawn_s_kim at yahoo.com>
- Date: Mon, 21 Apr 2003 06:51:56 -0400 (EDT)
- Sender: owner-wri-mathgroup at wolfram.com
--- prodogoss <prodogoss at btinternet.com> wrote: > I have a load of {x, y, z} points which I have just about managed to > Import[] into Mathematica as a Table and now want to plot the data as > a countour-type plot > > How do I achieve this? > hello prodogoss. actually i was struggling with the same thing just the other day. I had some problems with the indexing, couldn't figure out how to fix it. (my axes order was screwed up ) anyway take a look at following example. In[18]:= t3 = Table[{i^2, 4 i^2 + i^3, i^3}, {i, 10}] Out[18]= {{1, 5, 1}, {4, 24, 8}, {9, 63, 27}, {16, 128, 64}, {25, 225, 125}, {36, 360, 216}, {49, 539, 343}, {64, 768, 512}, {81, 1053, 729}, {100, 1400, 1000}} here's the contour plot. In[23]:= ListContourPlot[t3] and here's the 3d graph In[19] := ListPlot3D[t3, PlotLabel -> t3, AxesLabel -> {x, y, z}] this gives some funky errors on the top of the plot with numbers showing instead of the actual label... but it does what it supposed to do which is to plot a 3 dimensional graph. let me know if you figure out how to get rid of that. also finally if you want, In[25]:= ListDensityPlot[t3] hope that helps. sean ===== when riding a dead horse, some dismount. while others... buy a new whip. which one might you be? __________________________________________________ Do you Yahoo!? The New Yahoo! Search - Faster. Easier. Bingo http://search.yahoo.com