What I'd like to be able to do is dynamically change the axis of a 3D plot inside a manipulate.
For example if I have a function that has three input variables I'd like a 3D plot using 2 of the input variables and be able to manipulate the third. The part that I've had trouble with is making the axis of the plots dynamic.
This is how far I've got:
axes = {{x, 0, 10}, {y, 0, 10}, {z, 0, 10}};
Manipulate[
Plot3D[fun1[x, y, z], {x, 0, 10}, {y, 0, 10}], {z, 0,
10}, {{axis1, x, "Axis 1"}, axes[[All, 1]],
PopupMenu}, {{axis2, y, "Axis 2"}, axes[[All, 1]], PopupMenu}]
which gives me
Any help would be greatly appreciated.
To be more clear;
The axes I would like to change are the x and y axis on the 3d plot. What I'd like to be able to do is select axis 1 = x and axis 2 = z and have the manipulate change to y.
Read the FAQs
! 3) When you see good Q&A, vote them up byclicking the gray triangles
, because the credibility of the system is based on the reputation gained by users sharing their knowledge. ALSO, remember to accept the answer, if any, that solves your problem,by clicking the checkmark sign
` $\endgroup$