Skip to main content
4-Participant
December 2, 2016
Solved

How to mark some points in 3D scatter plot

  • December 2, 2016
  • 1 reply
  • 7176 views

Hi all,

I want to mark some points in the 3D scatter plot to view where that points are located in 3D.

Could someone please tell me, "How to plot the points on the 3D scatter plot

for my following mathcad file ?

I explained clearly about my question in the attached mathcad file.

Please find my mathcad file below.

Best answer by Werner_E

> Could you please tell me, what type of brackets do I need to use ?.

You are experiencing problems with P1  because you did not realize that the elements of P1 are 1 x 1 matrices. You have to create them (at least one of them, then copy and edit) in some empty space on your worksheet and then copy and paste it from there.

This was the reason why I showed with P2 how to create the same structure using the "stack" command. The "stack" command is for stacking one matrix on top of another but it can also used with just one argument and if this argument is a scalar, "stack" will return it as 1 x 1 vector.

Basically when plotting points in a 3D-plot you have to provide a 3 x 1 vector and the three vector elements have to be n x 1 vectors consisting of the x, y and z coordinates of the points to be plotted. Thats how P34 works. plotting both points at once.  Another way is to provide those three vectors (lets call them X, Y and Z) as (X,Y,Z) directly in the plot placeholder like you have done with (A,B,E). But I prefer to create one vector with all, assign it to a variable (like "curve3D" in my last file) and use that variable for plotting.

You can see the difference between P1 and P2 if you evaluate both variables:

In case you wonder: The three red points which correspond to P1 in your plot are ( 0 / 0 / A1 ),  ( 1 /  0 / B1 )  and  ( 2 / 0 / E1 ). The 0,1,2  are ORIGIN, ORIGIN+1, ORIGIN+2.

WE

1 reply

25-Diamond I
December 2, 2016
vveeran4-ParticipantAuthor
4-Participant
December 2, 2016

Dear werner,

Thanks for your answer.

I am new to 3-D plot,

I have some problem, while plotting values of P1, P2 and P34.

For eg, when I include in the 3D-plot like,

(A,B,E),P1

under 3-D Plot Format dialog box - -> General--> plot 2--> scatter plot is invisible.

I can only see like this below under 3-D Plot Format dialog box,

Surface plot, Data points, Bar plot in the above

Contour plot, Vector Field plot, Patch plot  in below.

Could you please tell me, what is the procedure to

make visible "scatter plot" in plot 2 ?

Thanks.

19-Tanzanite
December 2, 2016

"Data points" means scatter plot.