# Line attributes in lego1 & lego2

**URL:** <https://root-forum.cern.ch/t/line-attributes-in-lego1-lego2/16152>\
**Category:** ROOT\
**Created:** [May 27, 2013, 12:07pm UTC](https://root-forum.cern.ch/t/line-attributes-in-lego1-lego2/16152 "2013-05-27T12:07:02Z")\
**Posts on this page:** 1\
**Showing post:** 19

<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 31, 2013, 5:53pm UTC](https://root-forum.cern.ch/t/line-attributes-in-lego1-lego2/16152/19 "2013-05-31T17:53:48Z")

</div>

Not to mix up everything, I propose we carry on this discussion in a new post.

> [@Lego2 pdf transparency](https://root-forum.cern.ch/t/lego2-pdf-transparency/16175/1):
>
> Hi there, When plotting a lego2 and saving it into pdf, it appears to be slightly transparent. [canvas\_pal01\_contour50.pdf](https://root-forum.cern.ch/uploads/default/original/2X/7/7220c399191e2a16fdd021f224d9f7af88085851.pdf) (16.2 KB) { gStyle-\>SetLineScalePS(1) ; TH2D \* histo = new TH2D ("histo","", 3,-3.,3., 3,-3.,3.) ; histo-\>SetBinContent(2,2,1.) ; histo-\>SetStats(kFALSE) ; histo-\>SetLineColor(kBlack) ; histo-\>SetLineStyle(1) ; histo-\>SetLineWidth(1) ; Int\_t pal=1 ; Int\_t contour=99 ; gStyle-\>SetPalette(pal) ; gStyle-\>SetNumberContours(contour) ; TCanvas \* canvas = new TCanvas ("canvas","c…

Cheers,  
Z

---

_[View the full topic](https://root-forum.cern.ch/t/line-attributes-in-lego1-lego2/16152)._
