# Publication Quality Graphics

**URL:** <https://root-forum.cern.ch/t/publication-quality-graphics/27402>\
**Category:** ROOT\
**Created:** [December 30, 2017, 9:48pm UTC](https://root-forum.cern.ch/t/publication-quality-graphics/27402 "2017-12-30T21:48:25Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![ksmith](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/ksmith/32/12567_2.png) [@ksmith](https://root-forum.cern.ch/u/ksmith)\
**Post date:** [January 2, 2018, 8:34pm UTC](https://root-forum.cern.ch/t/publication-quality-graphics/27402/4 "2018-01-02T20:34:46Z")

</div>

I’d suggest using TikZ / [PGFPlots](http://pgfplots.sourceforge.net/). ROOT can output to the TikZ format, but I find building the pgfplot manually a much more clean and readable way. This also allows you to easily change axis labels, legend titles, etc. without having to return to ROOT. At one point I had started writing a library that could convert ROOT histograms to the corresponding pgfplot, but never found time to finish it.

An example:

> [@Unwanted borders around fill areas when canvas is printed as a .tex](https://root-forum.cern.ch/t/unwanted-borders-around-fill-areas-when-canvas-is-printed-as-a-tex/24623):
>
> Hi ROOTers, While making some PDFs of ROOT plots that I printed to .tex files (see [here](https://root-forum.cern.ch/t/tmathtext-and-transparency-on-the-same-pdf/24566/3)), I’m finding that filled areas, such as TGraph error bands with draw options \>= 2, have borders around them that don’t appear in other formats. When the area has a solid fill, the border is the same color as the fill so it doesn’t look terrible, but the line thickness changes the size of the filled region. When I fill the area with a pattern, the box is always black. The following Python script demonstrates…

---

_[View the full topic](https://root-forum.cern.ch/t/publication-quality-graphics/27402)._
