Skip to content

Commit 478d3b3

Browse files
committed
1. Fix drawing of TH2 histogram - minimal bin should be draw when not zero
git-svn-id: https://subversion.gsi.de/dabc/trunk/plugins/root/js@2824 bcbf6573-9a26-0410-9ebc-ce4ab7aade96
1 parent 190266e commit 478d3b3

File tree

2 files changed

+17
-17
lines changed

2 files changed

+17
-17
lines changed

scripts/JSRootCore.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414

1515
JSROOT = {};
1616

17-
JSROOT.version = "3.1 dev 2/12/2014";
17+
JSROOT.version = "3.1 dev 3/12/2014";
1818

1919
JSROOT.source_dir = function(){
2020
var scripts = document.getElementsByTagName('script');

scripts/JSRootPainter.js

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -136,21 +136,21 @@
136136
JSROOT.Painter.root_colors = function() {
137137
var colorMap = new Array('white', 'black', 'red', 'green', 'blue',
138138
'rgb(255,255,0)', 'rgb(255,0,255)', 'rgb(0,255,255)',
139-
'rgb(89, 211, 84)', 'rgb(89, 84, 216)', 'rgb(254, 254, 254)',
140-
'rgb(191,181, 173)', 'rgb(76, 76, 76)', 'rgb(102, 102, 102)',
141-
'rgb(127,127, 127)', 'rgb(153, 153, 153)', 'rgb(178, 178, 178)',
142-
'rgb(204,204, 204)', 'rgb(229, 229, 229)', 'rgb(242, 242, 242)',
143-
'rgb(204,198, 170)', 'rgb(204, 198, 170)', 'rgb(193, 191, 168)',
144-
'rgb(186,181, 163)', 'rgb(178, 165, 150)', 'rgb(183, 163, 155)',
145-
'rgb(173,153, 140)', 'rgb(155, 142, 130)', 'rgb(135, 102, 86)',
146-
'rgb(175,206, 198)', 'rgb(132, 193, 163)', 'rgb(137, 168, 160)',
147-
'rgb(130,158, 140)', 'rgb(173, 188, 198)', 'rgb(122, 142, 153)',
148-
'rgb(117,137, 145)', 'rgb(104, 130, 150)', 'rgb(109, 122, 132)',
149-
'rgb(124,153, 209)', 'rgb(127, 127, 155)', 'rgb(170, 165, 191)',
150-
'rgb(211,206, 135)', 'rgb(221, 186, 135)', 'rgb(188, 158, 130)',
151-
'rgb(198,153, 124)', 'rgb(191, 130, 119)', 'rgb(206, 94, 96)',
152-
'rgb(170,142, 147)', 'rgb(165, 119, 122)', 'rgb(147, 104, 112)',
153-
'rgb(211,89, 84)');
139+
'rgb(89, 211,84)', 'rgb(89,84,216)', 'rgb(254,254,254)',
140+
'rgb(191,181,173)', 'rgb(76,76,76)', 'rgb(102,102,102)',
141+
'rgb(127,127,127)', 'rgb(153,153,153)', 'rgb(178,178,178)',
142+
'rgb(204,204,204)', 'rgb(229,229,229)', 'rgb(242,242,242)',
143+
'rgb(204,198,170)', 'rgb(204,198,170)', 'rgb(193,191,168)',
144+
'rgb(186,181,163)', 'rgb(178,165,150)', 'rgb(183,163,155)',
145+
'rgb(173,153,140)', 'rgb(155,142,130)', 'rgb(135,102,86)',
146+
'rgb(175,206,198)', 'rgb(132,193,163)', 'rgb(137,168,160)',
147+
'rgb(130,158,140)', 'rgb(173,188,198)', 'rgb(122,142,153)',
148+
'rgb(117,137,145)', 'rgb(104,130,150)', 'rgb(109,122,132)',
149+
'rgb(124,153,209)', 'rgb(127,127,155)', 'rgb(170,165,191)',
150+
'rgb(211,206,135)', 'rgb(221,186,135)', 'rgb(188,158,130)',
151+
'rgb(198,153,124)', 'rgb(191,130,119)', 'rgb(206,94,96)',
152+
'rgb(170,142,147)', 'rgb(165,119,122)', 'rgb(147,104,112)',
153+
'rgb(211,89,84)');
154154

155155
var circleColors = [ 632, 416, 600, 400, 616, 432 ];
156156

@@ -5588,7 +5588,7 @@
55885588
if (gry1 < 0) gry1 = this.y(y1);
55895589
gry2 = this.y(y2);
55905590
binz = this.histo.getBinContent(i + 1, j + 1);
5591-
if (binz <= this.minbin) continue;
5591+
if ((binz == 0) || (binz < this.minbin)) continue;
55925592

55935593
switch (coordinates_kind) {
55945594
case 0:

0 commit comments

Comments
 (0)