diff --git a/modules/hist2d/TGraphPainter.mjs b/modules/hist2d/TGraphPainter.mjs index 37cd1aaca..c5a883114 100644 --- a/modules/hist2d/TGraphPainter.mjs +++ b/modules/hist2d/TGraphPainter.mjs @@ -1,5 +1,5 @@ import { gStyle, BIT, settings, create, createHistogram, setHistogramTitle, isFunc, isStr, - clTPaveStats, clTCutG, clTH1I, clTH2I, clTF1, clTF2, kNoZoom, kNoStats } from '../core.mjs'; + clTPaveStats, clTCutG, clTH1I, clTH2I, clTF1, clTF2, clTPad, kNoZoom, kNoStats } from '../core.mjs'; import { select as d3_select } from '../d3.mjs'; import { DrawOptions, buildSvgCurve, makeTranslate, addHighlightStyle } from '../base/BasePainter.mjs'; import { ObjectPainter } from '../base/ObjectPainter.mjs'; @@ -443,7 +443,7 @@ class TGraphPainter extends ObjectPainter { pmain = { pad_layer: true, - pad: pp?.getRootPad(true), + pad: pp?.getRootPad(true) ?? create(clTPad), pw: rect.width, ph: rect.height, fX1NDC: 0.1, fX2NDC: 0.9, fY1NDC: 0.1, fY2NDC: 0.9,