RE: plot graph
- To: mathgroup@smc.vnet.net
- Subject: [mg11135] RE: [mg11037] plot graph
- From: "Barthelet, Luc" <lucb@ea.com>
- Date: Mon, 23 Feb 1998 21:40:53 -0500
they are several issues here: 1) in using ListPlot3D you do not provide X and Y they are assumed by the location in the array 2) you need to provide a 2 dimensional array I suggest you do Show[Graphics3D[ Line [{{1,10,100},{2,20,200},{3,30,300},{4,40,400}}] ]] If you do not want lines you might want to substitute "Point" for "Line" in the command above. That's a pretty boring graphic. I hope it gets better with real data. good luck, Luc. >-----Original Message----- >From: h9302431@hkusua.hku.hk [SMTP:h9302431@hkusua.hku.hk] To: mathgroup@smc.vnet.net >Sent: Wednesday, February 18, 1998 5:32 PM >To: mathgroup@smc.vnet.net >Subject: [mg11037] plot graph > >I have a set of solutions. I partitioned them 3 by 3 : >{{x1,y1,z1},{x2,y2,z2},{x3,y3,z3},{x4,y4,z4},...}. I want to plot a 3D >graph. I know ListPlot[] can treat {{x1,y1},{x2,y2},...}. But >ListPlot3D[] does not give the graph I want. What is wrong ? I am >using Mathematica 3.0 . > >Give an example, I think >ListPlot3D[{{1,10,100},{2,20,200},{3,30,300},{4,40,400}}] should show a >straight line. But it doesn't. > >Thanks for help. >David Chik. ( email : h9505865@hkusua.hku.hk ) > >