2
$\begingroup$

I'm attempting to use CreateDialog to demonstrate a 3D Plot to users who are not Mathematica-ly inclined. Unfortunately, when I try to do so, using something like this piece of code:

            CreateDialog[ExpressionCell[Plot3D[Sin[x + y^2], {x, -3, 3}, {y, -2, 2}]]]

the Plot can no longer be rotated, zoomed, or panned. This limits the usefulness of the Dialog, so I'd very much like to fix this. Any suggestions?

$\endgroup$
1
  • $\begingroup$ Welcome to Mathematica.SE! I suggest the following: 0) Browse the common pitfalls question 1) As you receive help, try to give it too, by answering questions in your area of expertise. 2) Read the faq! 3) When you see good questions and answers, vote them up by clicking the gray triangles, because the credibility of the system is based on the reputation gained by users sharing their knowledge. Also, please remember to accept the answer, if any, that solves your problem, by clicking the checkmark sign! $\endgroup$ Commented Aug 19, 2015 at 3:04

1 Answer 1

1
$\begingroup$

You can set options in ExpressionCell:

CreateDialog[
 ExpressionCell[
  Plot3D[Sin[x + y^2], {x, -3, 3}, {y, -2, 2}, 
   SphericalRegion -> True], Selectable -> True, Deployed -> False]]
$\endgroup$
0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.