Skip to content

Commit

Permalink
Fix - properly assign main painter for palette axis
Browse files Browse the repository at this point in the history
  • Loading branch information
linev committed Jun 18, 2024
1 parent 8f3ec1e commit 8783f46
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions modules/hist/TPavePainter.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -836,9 +836,10 @@ class TPavePainter extends ObjectPainter {
contour = main.fContour,
levels = contour?.getLevels(),
is_th3 = isFunc(main.getDimension) && (main.getDimension() === 3),
is_scatter = isFunc(main.getZaxis),
log = pad?.fLogv ?? (is_th3 ? false : pad?.fLogz),
draw_palette = main._color_palette,
zaxis = isFunc(main.getZaxis) ? main.getZaxis() : main.getObject()?.fZaxis,
zaxis = is_scatter ? main.getZaxis() : main.getObject()?.fZaxis,
sizek = pad?.fTickz ? 0.35 : 0.7;

let zmin = 0, zmax = 100, gzmin, gzmax, axis_transform = '', axis_second = 0;
Expand All @@ -858,8 +859,7 @@ class TPavePainter extends ObjectPainter {
axis.fLabelColor = zaxis.fLabelColor;
axis.fLabelFont = zaxis.fLabelFont;
axis.fLabelOffset = zaxis.fLabelOffset;
if (!isFunc(main.getZaxis))
this.z_handle.setHistPainter(main, 'z');
this.z_handle.setHistPainter(main, is_scatter ? 'hist#z' : 'z');
this.z_handle.source_axis = zaxis;
}

Expand Down

0 comments on commit 8783f46

Please sign in to comment.