# No shadow in lego1

**URL:** <https://root-forum.cern.ch/t/no-shadow-in-lego1/16148>\
**Category:** ROOT\
**Created:** [May 26, 2013, 5:52pm UTC](https://root-forum.cern.ch/t/no-shadow-in-lego1/16148 "2013-05-26T17:52:00Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![Zesp](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/z/b5ac83/32.png) [@Zesp](https://root-forum.cern.ch/u/Zesp)\
**Post date:** [May 26, 2013, 5:52pm UTC](https://root-forum.cern.ch/t/no-shadow-in-lego1/16148/1 "2013-05-26T17:52:00Z")

</div>

Hi there,

Attached is a patch not to plot shadowed faces in lego1 (git diff).  
It introduces the new option “noshadow” (see below)

`{
TH2D * histo = new TH2D ("histo","histo", 20,-5.,5., 20,-5.,5.) ; 
histo->FillRandom("gaus",1000) ;
histo->SetFillColor(kRed) ; 
histo->SetStats(kFALSE) ; 
TCanvas * canvas = new TCanvas ("canvas") ; 
canvas->Divide(2,1) ; 
canvas->cd(1) ; histo->Draw("lego1,fb") ;
canvas->cd(2) ; histo->Draw("lego1,fb,noshadow") ;
}`Could this (or any better version (gStyle?)) be committed to the trunk?

Cheers,  
Z  
[lego1\_noshadow.tgz](https://root-forum.cern.ch/uploads/default/original/2X/1/1d5018e0d881ec89755310369c49fa0d13ad2d28.tgz) (1015 Bytes)

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

---

_[View the full topic](https://root-forum.cern.ch/t/no-shadow-in-lego1/16148)._
