I have four different functions that can generate four different datasets.

I want to be able to generate a single 3D contour of the result. I've tried many things and basically I am not getting anything that looks remotely what I want, a,b,c,d are constants in terms of the data which x and z are axes.

Here is my code which is pretty basic.

a = 2/Sqrt[3]*π; b = 3/Sqrt[3]*π; c = 2/Sqrt[2]*π; d = 3/Sqrt[2]*π; 
x1 = -(x*a); x2 = -(z*b); x3 = (x*c); x4 = -(z*d); 
data1 = Table[{x1, x2}, {x, -10, 0, 1}, {z, -10, 0, 1}]; 
data2 = Table[{x3, x4}, {x, 0, 10, 1}, {z, 0, 10, 1}];

Show[ListPlot3D[data1], ListPlot3D[data2, PlotStyle -> Red]]
  • $\begingroup$ Your data is not in (x,y,z) form. $\endgroup$ – OkkesDulgerci Sep 5 '19 at 23:12
  • $\begingroup$ I know but should I rewrite it in x,y,z form? $\endgroup$ – Betty Sep 5 '19 at 23:16
  • $\begingroup$ Not sure what you are trying to achieve, look up ListPointPlot3D $\endgroup$ – OkkesDulgerci Sep 5 '19 at 23:34
  • $\begingroup$ I tried that one. $\endgroup$ – Betty Sep 5 '19 at 23:39
  • $\begingroup$ Sorry, your question is not clear. Can you restate it? What are x1 and x2? $\endgroup$ – OkkesDulgerci Sep 5 '19 at 23:45

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.