## 3D plot

gould
Posts: 8
Joined: 2012-06-11
Location: Italy

Hi all,
after have looked for many topics I have to ask you an help to do a simple 3D in plot in igor...
I have a mztrix 5x5x5 how can I make a 3dimensional plot of them?

Thank you...G.

[ last edited June 11, 2012 - 09:08 ]
Posts: 338
Joined: 2007-06-29
Location: United States

Hello Gould,

Start by converting your data into a triplet wave using the command:

Concatenate {xwave, ywave, zwave}, tripletWave

Then display the triplet wave as a scatter or path plot in Gizmo. This is covered in detail in the 3D Plotting video tutorials here: http://www.wavemetrics.com/products/igorpro/videotutorials.htm

A.G.
WaveMetrics, Inc.

gould
Posts: 8
Joined: 2012-06-11
Location: Italy

Hi, thank you for your reply, but please be patient but I am not still able to make my 3D plot...
I attach the image of my table...
is possible to realize a surface plot of this data?
in the figure, Vg is the x axis, c (the last) is the y and all the other are on z....

Thank you very much for your help...G.

AttachmentSize
Picture 5.png30.77 KB

gould
Posts: 8
Joined: 2012-06-11
Location: Italy

Igor is quite hard !
I am not sure to have gizmo installed correctly: if I open "data browser" my Igor shut down....:-)
More I have not the same sub-menu I have seen in the video tutorilas...

How can I make an update or upload the library?

Thank you!!!! G.

proland
Posts: 120
Joined: 2011-03-14
Location: United States

It looks like this will take some extra effort as you don't have the required three waves: x,y,z. Instead, you have x, y, and 5 separate z waves.

You need to combine the z waves and modify x and y accordingly so you have three waves where each row represents a xyz point in space. (see attachment)

Next, you can make the triplet wave, and generate the gizmo plot. This makes a scatterplot. To make the 3D plot look better, you will need to append a surface plot. The surfaceplot wave can be generated from your triplet wave using ImageInterploate (the Voronoi method usually works for me). Use the /S flag to specify the resolution of the image generated.

`ImageInterpolate/S={0, 0.05, 1, 1e-6, 5e-6, 1} Voronoi Tripletwave`

AttachmentSize
Clipboard01.jpg24.34 KB

[ last edited June 12, 2012 - 09:08 ]
Posts: 338
Joined: 2007-06-29
Location: United States

Hello Gould,

gould wrote:
Hi, thank you for your reply, but please be patient but I am not still able to make my 3D plot...

I hope I did not sound impatient -- just tried to point you to some resources that demonstrate how easy it is to create 3D plots.

Quote:
I attach the image of my table...
is possible to realize a surface plot of this data?
in the figure, Vg is the x axis, c (the last) is the y and all the other are on z....

You need to organize your data in the form of a triplet wave. A triplet wave has 3 columns where each row specifies the XYZ triplet of a single data point. Since you are dealing with a relatively small set of data you can create the necessary wave on the command line (e.g., make/N=(#rows,3) tripletWave ) and then fill the wave using copy and paste using tables.

After you create the triplet wave you should ask yourself if a surface is indeed the appropriate representation for the data or if, for example, a scatter is more suitable. If you still want to display a surface then follow the instructions in the video tutorial. If you want to display a scatter then you can select the icon corresponding to the triplet wave in the Data Browser and choose Gizmo Plot from the contextual menu.

If you have a problem with the Data Browser you need to report it to support@wavemetrics.com. The last crash reported on the Mac was years ago in a version of IP5 and can be solved by a simple update of the XOP. Still I suggest that you contact support and report all the relevant details including the version of IP and the OS that you are running so we can investigate further.

A.G.
WaveMetrics, Inc.

gould
Posts: 8
Joined: 2012-06-11
Location: Italy

Ok, thank you very much for your support! G