# 2D histograms with "col" option

**URL:** <https://root-forum.cern.ch/t/2d-histograms-with-col-option/18603>\
**Category:** ROOT\
**Created:** [December 11, 2014, 4:20pm UTC](https://root-forum.cern.ch/t/2d-histograms-with-col-option/18603 "2014-12-11T16:20:13Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![delaossa](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/delaossa/32/12319_2.png) [@delaossa](https://root-forum.cern.ch/u/delaossa)\
**Post date:** [December 11, 2014, 4:20pm UTC](https://root-forum.cern.ch/t/2d-histograms-with-col-option/18603/1 "2014-12-11T16:20:13Z")

</div>

Dear rooters,  
I have an issue when plotting colored 2D histograms.  
If I cut the plotting range in the z axis (colored dimension), the bins with smaller values than the low z edge are drawn in white.  
That does not happen with the bins with greater values than the up z edge, which are drawn using the color corresponding to the up z edge.  
This looks horrible in a colored histogram:

 ![](https://root-forum.cern.ch/uploads/default/original/2X/b/b61f8c6c85a000ccec1f2315f739a4bb445bd701.png)  

Here the little macro reproducing the problem:  
[testHisto2D.C](https://root-forum.cern.ch/uploads/default/original/2X/c/c655282cc4f6382be10f5e16117e1edd9a12da73.C) (872 Bytes)

This issue is destroying the outlook of a plot that I am preparing for a publication:

 ![](https://root-forum.cern.ch/uploads/default/original/2X/3/322f10589543b410d5f7468a3e1db081f065c5e4.png)  
  
In the middle panel you can see how the values below the low edge are drawn in white instead of blue.  
So any help to fix this is very welcome!  
Thanks in advance,  
Alberto

---

_[View the full topic](https://root-forum.cern.ch/t/2d-histograms-with-col-option/18603)._
