Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.

- JMP User Community
- :
- Discussions
- :
- 3D plot of crystal structure

- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page

Highlighted

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Get Direct Link
- Email to a Friend
- Report Inappropriate Content

Jul 10, 2020 12:41 AM
(880 views)

Has anyone done this, is there any example?

I would like to use JMP's 3D plotting capabilities to understand Location of Atoms in a Crystal lattice, to plot some crystallographic planes etc.

Georg

1 ACCEPTED SOLUTION

Accepted Solutions

Highlighted

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Get Direct Link
- Email to a Friend
- Report Inappropriate Content

If you are thinking of writing your own JSL using the 3D SceneBox, Third Branch 4K Video might give you some ideas about what is feasible. Also check out the examples in the sampledata/scene3d directory.

Also, checkout the Graph3DBox in the scripting index. It doesn't do much more than the example, but it doesn't require learning OpenGL commands either.

Craige

8 REPLIES 8

Highlighted
##

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Get Direct Link
- Email to a Friend
- Report Inappropriate Content

Re: 3D plot of crystal structure

Hmm, I don't think this is easily to be done. The knots (aka molecules) could be represented by dots, using color by column (for the element). However the tough part would be the correct connection and possible free arms.

I'd be happy if someone knows a solution or has implemented one already, I'd love to see this working.

my2cents

Highlighted
##

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Get Direct Link
- Email to a Friend
- Report Inappropriate Content

Re: 3D plot of crystal structure

If you have the coordinates of the unit cell, you could just plot it in Scatterplot 3D. You'd have to do the translations yourself to flesh out the unit cell from the basis set you get in the CIF files, though. Coloring the atoms should be easy enough in Scatterplot 3D

best,

M

best,

M

Highlighted

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Get Direct Link
- Email to a Friend
- Report Inappropriate Content

If you are thinking of writing your own JSL using the 3D SceneBox, Third Branch 4K Video might give you some ideas about what is feasible. Also check out the examples in the sampledata/scene3d directory.

Also, checkout the Graph3DBox in the scripting index. It doesn't do much more than the example, but it doesn't require learning OpenGL commands either.

Craige

Highlighted
##

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Get Direct Link
- Email to a Friend
- Report Inappropriate Content

Re: 3D plot of crystal structure

Thank you, Craig, @Craige_Hales . I missed this.

Highlighted
##

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Get Direct Link
- Email to a Friend
- Report Inappropriate Content

Re: 3D plot of crystal structure

Thanks Craige!

It looks like this video can be done with JSL?

Superposition, wave function collapse, and uncertainty principle in Quantum Physics. Shows real & imaginary components of quantum wave functions for free par...

Highlighted
##

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Get Direct Link
- Email to a Friend
- Report Inappropriate Content

Re: 3D plot of crystal structure

the green pea parts should be straight forward; shadows are not something JMP's use of OpenGL does except by trickery, like Animated 3D Spider Model

Craige

Highlighted
##

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Get Direct Link
- Email to a Friend
- Report Inappropriate Content

Re: 3D plot of crystal structure

@Craige_Hales unfortunately I was not able to figure out how to do simple shapes as Spheres, planes and lines in the Scene.

The Vector in the example is very impressive, but I Need simple shapes also. The Show properties command gives only three possibilities for adding markers, Ellipsoids and vectors.

The platform is experimental, so would you recommend me to do Scenes with many spheres, some planes and lines in OpenGL or is there a way to do it in Graph 3D Box? Thanks!

```
Add Markers [Action] [Scripting Only] (Draws n markers on the plot.)
Add Ellipsoid [Action] [Scripting Only] (Draws an ellipsoid on the plot.)
Add Vector [Action] [Scripting Only] (Draws a vector or arrow on the plot.)
```

Georg

Highlighted
##

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Get Direct Link
- Email to a Friend
- Report Inappropriate Content

Re: 3D plot of crystal structure

Good use of show properties to discover the limited set of capabilities in the Graph3D box! If you need general drawing, you'll have to go with the SceneBox OpenGL code.

Craige