# \#graphics

**URL:** https://root-forum.cern.ch/tag/graphics/6.md

[Latest](https://root-forum.cern.ch/latest.md) · [Categories](https://root-forum.cern.ch/categories.md) · [Tags](https://root-forum.cern.ch/tags.md)

---

## [Right Arrow alignment in text](https://root-forum.cern.ch/t/right-arrow-alignment-in-text/65007)

<div class="topic-metadata">

**Author:** [@lost\_soul\_519](https://root-forum.cern.ch/u/lost_soul_519)\
**Replies:** 5\
**Last updated:** [September 30, 2026, 4:35pm UTC](https://root-forum.cern.ch/t/right-arrow-alignment-in-text/65007 "2026-09-30T16:35:02Z")

</div>

Hello, Had a quick question on a particular nuiances with how the text is rendered. Specifically with the right arrow. I’ve attached the script below. The alignment of the right arrow is clearly not centered with the t…

---

## [Root 6.40.00 - glitch in TTree::Draw for 3D (missing bins)](https://root-forum.cern.ch/t/root-6-40-00-glitch-in-ttree-draw-for-3d-missing-bins/64875)

<div class="topic-metadata">

**Author:** [@dastudillo](https://root-forum.cern.ch/u/dastudillo)\
**Replies:** 1\
**Last updated:** [June 1, 2026, 11:07am UTC](https://root-forum.cern.ch/t/root-6-40-00-glitch-in-ttree-draw-for-3d-missing-bins/64875 "2026-06-01T11:07:16Z")

</div>

\_ROOT Version: 6.40.00 \_Platform: Ubuntu 24.04 (Linux Mint 22.3) \_Compiler: c++ (Ubuntu 13.3.0-6ubuntu2~24.04.1) 13.3.0 Dear developers, I found a problem with TTree::Draw() in the latest root, when plotting 3 vari…

---

## [How to correctly scale title size and tick size across pads?](https://root-forum.cern.ch/t/how-to-correctly-scale-title-size-and-tick-size-across-pads/64837)

<div class="topic-metadata">

**Author:** [@lost\_soul\_519](https://root-forum.cern.ch/u/lost_soul_519)\
**Replies:** 1\
**Last updated:** [May 12, 2026, 11:29am UTC](https://root-forum.cern.ch/t/how-to-correctly-scale-title-size-and-tick-size-across-pads/64837 "2026-05-12T11:29:47Z")

</div>

Hello all, Hope you are well. I was trying to make a plotting code that does multiple pads but I was having some trouble in scaling the titles and ticks correctly. I may have misunderstood that the sizes scale with the…

---

## [Warning from TLegend and how to solve it](https://root-forum.cern.ch/t/warning-from-tlegend-and-how-to-solve-it/64835)

<div class="topic-metadata">

**Author:** [@Divyang](https://root-forum.cern.ch/u/Divyang)\
**Replies:** 16\
**Last updated:** [May 8, 2026, 3:20pm UTC](https://root-forum.cern.ch/t/warning-from-tlegend-and-how-to-solve-it/64835 "2026-05-08T15:20:56Z")

</div>

Hello everyone, I am using ROOT’s graphics libraries for my C++ application. Now, to create a legend for the plot, I am using TLegend. It works fine and I have a nice legend on my plot but when I execute the program, I …

---

## [Detector calibration GUI](https://root-forum.cern.ch/t/detector-calibration-gui/64724)

<div class="topic-metadata">

**Author:** [@Siddharth\_Parashari](https://root-forum.cern.ch/u/Siddharth_Parashari)\
**Replies:** 0\
**Last updated:** [March 2, 2026, 9:43am UTC](https://root-forum.cern.ch/t/detector-calibration-gui/64724 "2026-03-02T09:43:28Z")

</div>

Hi, I have prepared a GUI-based detector calibration application that can be used to calibrate ROOT based detector data, autodetect peaks using TSpectrum, Sliding window method or user provided ADC bins and provide cali…

---

## [TEfficiency with Log Scale?](https://root-forum.cern.ch/t/tefficiency-with-log-scale/64694)

<div class="topic-metadata">

**Author:** [@lost\_soul\_519](https://root-forum.cern.ch/u/lost_soul_519)\
**Replies:** 6\
**Last updated:** [February 11, 2026, 2:54pm UTC](https://root-forum.cern.ch/t/tefficiency-with-log-scale/64694 "2026-02-11T14:54:55Z")

</div>

Hello all, Just wanted to check how the TEfficiency class are supposed to be drawn on a log Canvas. I am hoping I’ve done something stupid here. Here is a quick reproducer. import ROOT import numpy as np xBins = np.lo…

---

## [How i can take two histograms from root-file and make its in one picture?](https://root-forum.cern.ch/t/how-i-can-take-two-histograms-from-root-file-and-make-its-in-one-picture/64325)

<div class="topic-metadata">

**Author:** [@andkon](https://root-forum.cern.ch/u/andkon)\
**Replies:** 15\
**Last updated:** [October 17, 2025, 1:16pm UTC](https://root-forum.cern.ch/t/how-i-can-take-two-histograms-from-root-file-and-make-its-in-one-picture/64325 "2025-10-17T13:16:43Z")

</div>

Hello, dear All! I have a problem: How i can take two histograms from root-file and make its in one picture? it is my code: void itog\_allGuass() { // Float\_t PMT2; Int\_t PMT2; TFile\* file1 = TFile::Open("351mm\_…

---

## [TScatter: user-defined axis range?](https://root-forum.cern.ch/t/tscatter-user-defined-axis-range/64166)

<div class="topic-metadata">

**Author:** [@seligman](https://root-forum.cern.ch/u/seligman)\
**Replies:** 2\
**Last updated:** [September 19, 2025, 7:20am UTC](https://root-forum.cern.ch/t/tscatter-user-defined-axis-range/64166 "2025-09-19T07:20:41Z")

</div>

Is there a way to affect the axis range of a TScatter? For example, here’s plot that takes advantage of variable colors and marker sizes: The only problem is that I’d like to set the axis range to (15,15) for both ax…

---

## [TGraph2D with predefined axis-range?](https://root-forum.cern.ch/t/tgraph2d-with-predefined-axis-range/63479)

<div class="topic-metadata">

**Author:** [@Georg\_T](https://root-forum.cern.ch/u/Georg_T)\
**Replies:** 14\
**Last updated:** [May 8, 2025, 12:55pm UTC](https://root-forum.cern.ch/t/tgraph2d-with-predefined-axis-range/63479 "2025-05-08T12:55:50Z")

</div>

Hi, I would like to create a TGraph2D and draw it with a prefined axis range (using cont4z). I can limit the axis, but I cannot extend them…? Finally, I would like to draw some lines, circles and arcs on top. I found …

---

## [Dimension changes in SaveAs Canvas for batch mode](https://root-forum.cern.ch/t/dimension-changes-in-saveas-canvas-for-batch-mode/63385)

<div class="topic-metadata">

**Author:** [@oglez](https://root-forum.cern.ch/u/oglez)\
**Replies:** 3\
**Last updated:** [April 15, 2025, 11:35am UTC](https://root-forum.cern.ch/t/dimension-changes-in-saveas-canvas-for-batch-mode/63385 "2025-04-15T11:35:18Z")

</div>

Dear experts, I have observed a very interesting effect of the use of the batch mode in ROOT to produce plot… the PNG (and PDF) that are obtained from the TCanvas::SaveAs command are different, even in the dimensions. I…

---

## [TH2 option TEXT not working with font 43](https://root-forum.cern.ch/t/th2-option-text-not-working-with-font-43/62513)

<div class="topic-metadata">

**Author:** [@pad](https://root-forum.cern.ch/u/pad)\
**Replies:** 4\
**Last updated:** [March 27, 2025, 2:36pm UTC](https://root-forum.cern.ch/t/th2-option-text-not-working-with-font-43/62513 "2025-03-27T14:36:54Z")

</div>

Dear ROOT, On my system, using the old canvas (TRootCanvas), the call to TH2F::Draw("text") do not show any bin content when the font is set to 13, 23 or 43… This script reproduces the issue : def testH(): h2 = RO…

---

## [ROOT' GL viewer](https://root-forum.cern.ch/t/root-gl-viewer/63189)

<div class="topic-metadata">

**Author:** [@oxon](https://root-forum.cern.ch/u/oxon)\
**Replies:** 2\
**Last updated:** [March 23, 2025, 12:32pm UTC](https://root-forum.cern.ch/t/root-gl-viewer/63189 "2025-03-23T12:32:27Z")

</div>

ROOT Version: 6.34.04 Platform: macOS 15.3.2 (M2) Compiler: Apple clang version 16.0.0 (clang-1600.0.26.6) I would like to use the “ROOT’s GL viewer” that was always shown when I used the “ogl” option in past ROOT v…

---

## [Issue with creating TCanvas and drawing histograms](https://root-forum.cern.ch/t/issue-with-creating-tcanvas-and-drawing-histograms/63003)

<div class="topic-metadata">

**Author:** [@jbrom](https://root-forum.cern.ch/u/jbrom)\
**Replies:** 8\
**Last updated:** [March 3, 2025, 12:08pm UTC](https://root-forum.cern.ch/t/issue-with-creating-tcanvas-and-drawing-histograms/63003 "2025-03-03T12:08:43Z")

</div>

ROOT Version: 6.34.02 Platform: win64 (Windows 11) Compiler: MSVC 19.39.33521.0 I am attempting to make some mass distribution histograms of the phi meson for 4 different beam polarizations and 10 t-ranges. I have de…

---

## [Issues in normalization in ranges and projections in 2d Model](https://root-forum.cern.ch/t/issues-in-normalization-in-ranges-and-projections-in-2d-model/62925)

<div class="topic-metadata">

**Author:** [@Elia\_Giulio\_Grandoni](https://root-forum.cern.ch/u/Elia_Giulio_Grandoni)\
**Replies:** 2\
**Last updated:** [February 12, 2025, 2:40pm UTC](https://root-forum.cern.ch/t/issues-in-normalization-in-ranges-and-projections-in-2d-model/62925 "2025-02-12T14:40:10Z")

</div>

Dear experts, I am trying to do a 2d unbinned fit in subranges. I did follow the tutorial multirangefit to do it and the result seem to be reasonable with the another independent result. For instance here is the relevan…

---

## [How to Use CERN ROOT Tools for Global Fit with Multiple TH1D Objects?](https://root-forum.cern.ch/t/how-to-use-cern-root-tools-for-global-fit-with-multiple-th1d-objects/62709)

<div class="topic-metadata">

**Author:** [@NuaaMtz](https://root-forum.cern.ch/u/NuaaMtz)\
**Replies:** 3\
**Last updated:** [January 21, 2025, 11:45am UTC](https://root-forum.cern.ch/t/how-to-use-cern-root-tools-for-global-fit-with-multiple-th1d-objects/62709 "2025-01-21T11:45:23Z")

</div>

Hello everyone, I am currently engaged in data analysis for a specific reaction channel, where I need to determind the branch ratio of each channel. I have simulated possible process data using GEANT4. For this moment, …

---

## [TCanvas doesn't show up](https://root-forum.cern.ch/t/tcanvas-doesnt-show-up/62694)

<div class="topic-metadata">

**Author:** [@Divyang](https://root-forum.cern.ch/u/Divyang)\
**Replies:** 5\
**Last updated:** [January 17, 2025, 11:19pm UTC](https://root-forum.cern.ch/t/tcanvas-doesnt-show-up/62694 "2025-01-17T23:19:52Z")

</div>

Hello everyone, I want to use TCanvas library for my C++ project to plot some data. For that I did created test.cc file which looks like this int main(int argc, char\* argv\[\]) { double var\_x\[3\] = {1, 2, 3}; double v…

---

## [Saving/loading canvases in .C format after using roofit](https://root-forum.cern.ch/t/saving-loading-canvases-in-c-format-after-using-roofit/62463)

<div class="topic-metadata">

**Author:** [@abrac](https://root-forum.cern.ch/u/abrac)\
**Replies:** 5\
**Last updated:** [December 13, 2024, 4:45pm UTC](https://root-forum.cern.ch/t/saving-loading-canvases-in-c-format-after-using-roofit/62463 "2024-12-13T16:45:04Z")

</div>

Hello, I am using roofit in pyROOT to fit to some data and I am interested in saving the resulting plot in .C format. When I plot just the roodatahist (prior to applying and plotting any fit), I am able to save the canv…

---

## [gROOT.SetWebDisplay() alters errorbars from Poisson to Normal?](https://root-forum.cern.ch/t/groot-setwebdisplay-alters-errorbars-from-poisson-to-normal/62335)

<div class="topic-metadata">

**Author:** [@rgartner](https://root-forum.cern.ch/u/rgartner)\
**Replies:** 3\
**Last updated:** [November 29, 2024, 1:45pm UTC](https://root-forum.cern.ch/t/groot-setwebdisplay-alters-errorbars-from-poisson-to-normal/62335 "2024-11-29T13:45:42Z")

</div>

Dear ROOT experts, I am seeing some strange behavior of errorbars when using ROOT.gROOT.SetWebDisplay(). I want to have Poisson errorbars, so I use the option histo.SetBinErrorOption(ROOT.TH1.kPoisson), which leads to …

---

## [Remove box border in 2d histograms](https://root-forum.cern.ch/t/remove-box-border-in-2d-histograms/62349)

<div class="topic-metadata">

**Author:** [@homura](https://root-forum.cern.ch/u/homura)\
**Replies:** 1\
**Last updated:** [November 29, 2024, 11:58am UTC](https://root-forum.cern.ch/t/remove-box-border-in-2d-histograms/62349 "2024-11-29T11:58:36Z")

</div>

Hello, I have this 2D correlation plot shown below, and I would like to remove the box surrounding the plot as well as the grid on the z-axis so that I have the axes but not the 3d box. I have looked around in root but …

---

## [Bus error while trying to plot](https://root-forum.cern.ch/t/bus-error-while-trying-to-plot/61954)

<div class="topic-metadata">

**Author:** [@boon\_toor](https://root-forum.cern.ch/u/boon_toor)\
**Replies:** 11\
**Last updated:** [October 30, 2024, 9:39pm UTC](https://root-forum.cern.ch/t/bus-error-while-trying-to-plot/61954 "2024-10-30T21:39:47Z")

</div>

Unsure if this is an issue with ROOT or macOS Sequoia, but I thought this may help others facing the same issue. ROOT (6.22.06, 6.26.06, 6.28.06) was working fine while I was still on macOS Sonoma on my M1 MacBook Pro, …

---

## [Undesired empty gaps when plotting TF1 functions](https://root-forum.cern.ch/t/undesired-empty-gaps-when-plotting-tf1-functions/62015)

<div class="topic-metadata">

**Author:** [@bolmont](https://root-forum.cern.ch/u/bolmont)\
**Replies:** 7\
**Last updated:** [October 30, 2024, 5:37pm UTC](https://root-forum.cern.ch/t/undesired-empty-gaps-when-plotting-tf1-functions/62015 "2024-10-30T17:37:44Z")

</div>

Hi, I noticed that when the plotting interval is very different from the interval where a TF1 is defined, undesired white gaps (or margins) appear around the plot. The more you zoom in, the larger the gaps are. Here is …

---

## [How to make LEGO plots using my own table data?](https://root-forum.cern.ch/t/how-to-make-lego-plots-using-my-own-table-data/62018)

<div class="topic-metadata">

**Author:** [@WeiZheng](https://root-forum.cern.ch/u/WeiZheng)\
**Replies:** 1\
**Last updated:** [October 26, 2024, 5:40am UTC](https://root-forum.cern.ch/t/how-to-make-lego-plots-using-my-own-table-data/62018 "2024-10-26T05:40:56Z")

</div>

Hi, I have a 2D data set which is saved as .txt file. The dimension is 17x24. When I use the following command lines to load the data and assign the data to the pointer hist like this std::ifstream input\_file("mytxt.tx…

---

## [RDataFrame](https://root-forum.cern.ch/t/rdataframe/61998)

<div class="topic-metadata">

**Author:** [@Martin11235](https://root-forum.cern.ch/u/Martin11235)\
**Replies:** 5\
**Last updated:** [October 24, 2024, 4:33pm UTC](https://root-forum.cern.ch/t/rdataframe/61998 "2024-10-24T16:33:16Z")

</div>

Dear ROOT experts, I am having trouble running a RDataFrame MT task that is initiated by a TGTextButton. I have a function linked to TGTextButton and this function executes some data analysis on the RDataFrame. This hap…

---

## [Automatic repositioning of TGaxis after zooming](https://root-forum.cern.ch/t/automatic-repositioning-of-tgaxis-after-zooming/61906)

<div class="topic-metadata">

**Author:** [@ferhue](https://root-forum.cern.ch/u/ferhue)\
**Replies:** 12\
**Last updated:** [October 10, 2024, 3:38pm UTC](https://root-forum.cern.ch/t/automatic-repositioning-of-tgaxis-after-zooming/61906 "2024-10-10T15:38:26Z")

</div>

I frequently use either a vertical or a horizontal TGaxis to create a secondary axis to my TGraphs or histograms. See attached ROOT file example. example.root (1.7 MB) The issue: If I zoom on X, the TGaxis disappears. I…

---

## [Canvases not displaying in lxplus](https://root-forum.cern.ch/t/canvases-not-displaying-in-lxplus/61724)

<div class="topic-metadata">

**Author:** [@mole.luca](https://root-forum.cern.ch/u/mole.luca)\
**Replies:** 5\
**Last updated:** [September 20, 2024, 2:19pm UTC](https://root-forum.cern.ch/t/canvases-not-displaying-in-lxplus/61724 "2024-09-20T14:19:54Z")

</div>

Hi. I am trying to draw some simple canvases in lxplus but nothing gets displayed. I access by ssh -xy and then load a tree in root and use Draw(). I get no error, just nothing displayed. Thanks for the help. \_ROOT …

---

## [Error bars inside markers with draw("same")](https://root-forum.cern.ch/t/error-bars-inside-markers-with-draw-same/60631)

<div class="topic-metadata">

**Author:** [@Tristan](https://root-forum.cern.ch/u/Tristan)\
**Replies:** 11\
**Last updated:** [September 9, 2024, 9:09am UTC](https://root-forum.cern.ch/t/error-bars-inside-markers-with-draw-same/60631 "2024-09-09T09:09:02Z")

</div>

Hi, I discovered that when plotting a TGraphErrors with error bars smaller than the markers, the bars are now displayed over the marker, pointing inward. I assume it’s a new feature dating back from release 6.26, given …

---

## [Draw GDML file from ROOT with 'ogl' show the canvas camera badly](https://root-forum.cern.ch/t/draw-gdml-file-from-root-with-ogl-show-the-canvas-camera-badly/60548)

<div class="topic-metadata">

**Author:** [@rquaglia](https://root-forum.cern.ch/u/rquaglia)\
**Replies:** 6\
**Last updated:** [August 21, 2024, 7:40am UTC](https://root-forum.cern.ch/t/draw-gdml-file-from-root-with-ogl-show-the-canvas-camera-badly/60548 "2024-08-21T07:40:48Z")

</div>

Dear experts, I dumped a gdml file and tried to draw it from my mac. this is the macro i am using void geom\_lhcb() { gSystem-\>Load("libGeom"); // TGeoManager::Import("run3\_2024.Q1.2-v00.00.gdml"); TGeoManager::I…

---

## [Help a newbie, root won't draw](https://root-forum.cern.ch/t/help-a-newbie-root-wont-draw/60510)

<div class="topic-metadata">

**Author:** [@alberto.3](https://root-forum.cern.ch/u/alberto.3)\
**Replies:** 2\
**Last updated:** [August 16, 2024, 2:54pm UTC](https://root-forum.cern.ch/t/help-a-newbie-root-wont-draw/60510 "2024-08-16T14:54:12Z")

</div>

Hi, maybe this is trivial but I’m having trouble. I’m working with root v 6.32.02 on Ubuntu 24.04 bash shell and I’m having trouble making graphs. I can’t produce images, even the most basic. Brief example; if I make t…

---

## [Migrating GUI Elements from ROOT5 to ROOT6](https://root-forum.cern.ch/t/migrating-gui-elements-from-root5-to-root6/60310)

<div class="topic-metadata">

**Author:** [@NSos](https://root-forum.cern.ch/u/NSos)\
**Replies:** 11\
**Last updated:** [August 1, 2024, 3:33pm UTC](https://root-forum.cern.ch/t/migrating-gui-elements-from-root5-to-root6/60310 "2024-08-01T15:33:02Z")

</div>

Please read tips for efficient and successful posting and posting code Please fill also the fields below. Note that root -b -q will tell you this info, and starting from 6.28/06 upwards, you can call .forum bug from th…

---

## [Multipage PDF - less memory consumption using png or something else](https://root-forum.cern.ch/t/multipage-pdf-less-memory-consumption-using-png-or-something-else/60234)

<div class="topic-metadata">

**Author:** [@rsln](https://root-forum.cern.ch/u/rsln)\
**Replies:** 8\
**Last updated:** [July 22, 2024, 6:53pm UTC](https://root-forum.cern.ch/t/multipage-pdf-less-memory-consumption-using-png-or-something-else/60234 "2024-07-22T18:53:51Z")

</div>

(Hello! I have memory consumption problem when trying to output my data to pdf with several pages. My pipeline is looking kinda like this: I make TCanvas, then in a loop I create some class instance that owns TMultiGrap…

[Next page](https://root-forum.cern.ch/tag/graphics/6.md?match_all_tags=true&page=1&tags%5B%5D=graphics)
