TH1Painter

TH1Painter

(private) new TH1Painter()

Draw 1-D histogram in 3D

Source:

Methods

autoZoom()

Perform automatic zoom inside non-zero region of histogram

Source:

(async) callDrawFunc()

Call drawing function depending from 3D mode

Source:

canZoomInside()

Checks if it makes sense to zoom inside specified axis range

Source:

convertTH1K()

Convert TH1K into normal binned histogram

Source:

countStat()

Count histogram statistic

Source:

draw1DBins()

Draw TH1 bins in SVG element

Source:
Returns:

Promise or scalar value

(async) draw2D() → {Promise}

Performs 2D drawing of histogram

Source:
Returns:

when ready

Type
Promise

draw3D()

draw TH1 object in 3D mode

Source:

(async) draw3D() → {Promise}

Should performs 3D drawing of histogram

Description:
  • Disable in 2D case, just draw with default options

Source:
Returns:

when ready

Type
Promise

(async) drawBars()

Draw histogram as bars

Source:

drawFilledErrors()

Draw histogram as filled errors

Source:

drawNormal()

Draw TH1 as hist/line/curve

Source:
Returns:

Promise or scalar value

fillHistContextMenu()

Fill histogram context menu

Source:

fillStatistic()

Fill stat box

Source:

getBinTooltips()

Provide text information (tooltips) for histogram bin

Source:

processTooltipEvent()

Process tooltip event

Source:

rebinHist()

Rebin histogram, used via context menu

Source:

redraw()

Redraw histogram

Source:

scanContent(when_axis_changed)

Scan content of 1-D histogram

Description:
  • Detect min/max values for x and y axis

Source:
Parameters:
Name Type Description
when_axis_changed boolean

true when zooming was changed, some checks may be skipped

(async, static) draw()

draw TH1 object

Source:

(async, static) draw()

draw TH1 object

Source:

TH1Painter

(private) new TH1Painter()

Painter for TH1 classes

Source:

Methods

autoZoom()

Perform automatic zoom inside non-zero region of histogram

Source:

(async) callDrawFunc()

Call drawing function depending from 3D mode

Source:

canZoomInside()

Checks if it makes sense to zoom inside specified axis range

Source:

convertTH1K()

Convert TH1K into normal binned histogram

Source:

countStat()

Count histogram statistic

Source:

draw1DBins()

Draw TH1 bins in SVG element

Source:
Returns:

Promise or scalar value

(async) draw2D() → {Promise}

Performs 2D drawing of histogram

Source:
Returns:

when ready

Type
Promise

draw3D()

draw TH1 object in 3D mode

Source:

(async) draw3D() → {Promise}

Should performs 3D drawing of histogram

Description:
  • Disable in 2D case, just draw with default options

Source:
Returns:

when ready

Type
Promise

(async) drawBars()

Draw histogram as bars

Source:

drawFilledErrors()

Draw histogram as filled errors

Source:

drawNormal()

Draw TH1 as hist/line/curve

Source:
Returns:

Promise or scalar value

fillHistContextMenu()

Fill histogram context menu

Source:

fillStatistic()

Fill stat box

Source:

getBinTooltips()

Provide text information (tooltips) for histogram bin

Source:

processTooltipEvent()

Process tooltip event

Source:

rebinHist()

Rebin histogram, used via context menu

Source:

redraw()

Redraw histogram

Source:

scanContent(when_axis_changed)

Scan content of 1-D histogram

Description:
  • Detect min/max values for x and y axis

Source:
Parameters:
Name Type Description
when_axis_changed boolean

true when zooming was changed, some checks may be skipped

(async, static) draw()

draw TH1 object

Source:

(async, static) draw()

draw TH1 object

Source: