Plot of array of shape (N, N, N) in form of sphere

Dear All,

I have an array of shape (N,N,N) of intensity values. How can I plot those
intensity values in form of sphere.
Can I show a cut of quadrant of that sphere, so that I can visualize
intensity not only on the surface but also inside the sphere.

Thanks

···

--
View this message in context: http://matplotlib.1069221.n5.nabble.com/Plot-of-array-of-shape-N-N-N-in-form-of-sphere-tp48103.html
Sent from the matplotlib - users mailing list archive at Nabble.com.

This sounds like something you'd want to use yt or mayavi for. While MPL
has basic 3D capabilities (e.g., scatter, line, and surface plots), taking
cuts of volumes is definitely out of our scope unless you've pre-computed
everything.

-Paul

···

On Thu, Jul 27, 2017 at 9:15 AM, cdpnepal <cdpnepal594 at gmail.com> wrote:

Dear All,

I have an array of shape (N,N,N) of intensity values. How can I plot those
intensity values in form of sphere.
Can I show a cut of quadrant of that sphere, so that I can visualize
intensity not only on the surface but also inside the sphere.

Thanks

--
View this message in context: http://matplotlib.1069221.n5.
nabble.com/Plot-of-array-of-shape-N-N-N-in-form-of-sphere-tp48103.html
Sent from the matplotlib - users mailing list archive at Nabble.com.
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users at python.org
Matplotlib-users Info Page

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/matplotlib-users/attachments/20170807/47ac15e2/attachment.html&gt;

Another fantastic tool is glumpy: https://glumpy.github.io/ (but I am not
familiar enough with the API to know how to do volumetric displays). vispy
is another possibility, but I am unsure of its current status (it went
silent about a year ago).

Ben Root

···

On Mon, Aug 7, 2017 at 11:52 AM, Paul Hobson <pmhobson at gmail.com> wrote:

This sounds like something you'd want to use yt or mayavi for. While MPL
has basic 3D capabilities (e.g., scatter, line, and surface plots), taking
cuts of volumes is definitely out of our scope unless you've pre-computed
everything.

-Paul

On Thu, Jul 27, 2017 at 9:15 AM, cdpnepal <cdpnepal594 at gmail.com> wrote:

Dear All,

I have an array of shape (N,N,N) of intensity values. How can I plot those
intensity values in form of sphere.
Can I show a cut of quadrant of that sphere, so that I can visualize
intensity not only on the surface but also inside the sphere.

Thanks

--
View this message in context: http://matplotlib.1069221.n5.n
abble.com/Plot-of-array-of-shape-N-N-N-in-form-of-sphere-tp48103.html
Sent from the matplotlib - users mailing list archive at Nabble.com.
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users at python.org
Matplotlib-users Info Page

_______________________________________________
Matplotlib-users mailing list
Matplotlib-users at python.org
Matplotlib-users Info Page

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/matplotlib-users/attachments/20170807/8d4ec560/attachment.html&gt;

Here is a notebook that illustrates how to work with volumetric data in
Plotly:
http://nbviewer.jupyter.org/github/empet/Plotly-plots/blob/master/Plotly-Slice-in-volumetric-data.ipynb
<http://nbviewer.jupyter.org/github/empet/Plotly-plots/blob/master/Plotly-Slice-in-volumetric-data.ipynb>
Another possibility is to define a slice in a volume as a triangulated
isosurface, via skimage.measure.marching_cubes.

Em

···

--
View this message in context: http://matplotlib.1069221.n5.nabble.com/Plot-of-array-of-shape-N-N-N-in-form-of-sphere-tp48103p48170.html
Sent from the matplotlib - users mailing list archive at Nabble.com.