I have a C# application that has 3-dimensional data that I wish to plot. Controls in C# for surface modeling are, in my experience, rather limited. I wish to have my C# application send the 3D point mesh data to Mathematica Plot3D and display the result in a winform or some other front end (notebook?).

Essentially, my goal is to use Mathematica as a generalized data visualization tool from my C# applications.

So far, I have been able to generate a picture file from Mathematica that I put in a MathPictureBox control which resides on a winform. However, I would like the interactivity you get when using Plot3D from a notebook. Is this possible?

  • 2
    $\begingroup$ This appears to be a duplicate of "Is it possible to embed the Mathematica editor?" $\endgroup$
    – Jens
    Commented Jun 27, 2012 at 20:45
  • $\begingroup$ @Jens I'm not sure I agree. I presume the interactivity that is asked for in this question is limited to the scaling and rotation of Graphics3D objects rather than a fully working Notebook interface. I think it is a distinct question although it may have a common answer. $\endgroup$
    – Mr.Wizard
    Commented Jun 28, 2012 at 7:32
  • $\begingroup$ You can embed the Plot as a CDF using a WebView component as Jens pointed out or use .NET/Link to pass the viewing angle to Mathematica and get back the resulting image (I would imagine the second option to be slower, i.e. less interactive, and more complex, but I'm just guessing). $\endgroup$
    – Ajasja
    Commented Jun 28, 2012 at 8:40
  • $\begingroup$ I was only looking at having interactivity in the form of rotation and scaling as Mr.Wizard rightly pointed out. However, Jens' link looks promising. Ajasja's latter option would be much less dynamic but could serve as a fallback approach. Thank you all. $\endgroup$
    – JohnC
    Commented Jun 28, 2012 at 15:54
  • $\begingroup$ @Jens I tried your instructions in the linked page and could not read data into the html-embedded CDF, getting an error about Get not allow in sandboxed mode. Any ideas? $\endgroup$
    – JohnC
    Commented Jun 28, 2012 at 23:56

1 Answer 1


Not a direct answer; but 7 years later, I have comfortably settled on using gnuplot as a generalized data visualization front-end (with full interactivity) for my .NET applications.


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.