# Show slices of TH3 in 3D view

**URL:** <https://root-forum.cern.ch/t/show-slices-of-th3-in-3d-view/43071>\
**Category:** Newbie\
**Tags:** graphics\
**Created:** [January 12, 2021, 11:16am UTC](https://root-forum.cern.ch/t/show-slices-of-th3-in-3d-view/43071 "2021-01-12T11:16:16Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![youngrootuser](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/y/ccd318/32.png) [@youngrootuser](https://root-forum.cern.ch/u/youngrootuser)\
**Post date:** [January 12, 2021, 6:52pm UTC](https://root-forum.cern.ch/t/show-slices-of-th3-in-3d-view/43071/4 "2021-01-12T18:52:13Z")

</div>

I found [this post](https://root-forum.cern.ch/t/tgraph3d/1750). Here, it was supposed to use an TNtuple with four entries: x,y,z,val. Then, one draws the tuple with option “col” or “colz” as

```auto
ntuple->Draw("x:y:z:val","","COL");

```

Unfortunately, for me (root version 6.20.00), only the first point of the ntuple is drawn and its fourth component determines its color. If I enter only  
ntuple-\>Draw(“x:y:val”,"","");  
then I get a [TPolyMarker3D](https://root.cern.ch/doc/master/classTPolyMarker3D.html) with all points, but they of course all have the same color.

---

_[View the full topic](https://root-forum.cern.ch/t/show-slices-of-th3-in-3d-view/43071)._
