Skip to content

Commit

Permalink
Fix - allow th2 hist option to change palette
Browse files Browse the repository at this point in the history
While hist for th2 equivalent to the color
  • Loading branch information
linev committed May 14, 2024
1 parent 00447a5 commit a0d4fed
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion modules/hist2d/TH2Painter.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -750,7 +750,7 @@ class TH2Painter extends THistPainter {
this.interactiveRedraw('pad', 'drawopt');
});

if (this.options.Color || this.options.Contour || this.options.Surf || this.options.Lego === 12 || this.options.Lego === 14)
if (this.options.Color || this.options.Contour || this.options.Hist || this.options.Surf || this.options.Lego === 12 || this.options.Lego === 14)
this.fillPaletteMenu(menu, true);
}

Expand Down
2 changes: 1 addition & 1 deletion modules/hist2d/THistPainter.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ class THistDrawOptions {
if (this.Mode3D)
return this.Lego === 12 || this.Lego === 14 || this.Surf === 11 || this.Surf === 12;

if (this.Color || this.Contour || this.Axis)
if (this.Color || this.Contour || this.Hist || this.Axis)
return true;

return !this.Scat && !this.Box && !this.Arrow && !this.Proj && !this.Candle && !this.Violin && !this.Text;
Expand Down

0 comments on commit a0d4fed

Please sign in to comment.