Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
clinicaltrials
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
david Chavalarias
clinicaltrials
Commits
ab41b407
Commit
ab41b407
authored
Jun 17, 2017
by
Romain Loth
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixed centering heatmap colors
(and other rounding issue with samerange)
parent
028ce16c
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
17 additions
and
6 deletions
+17
-6
selection-panels.css
libs/css2/selection-panels.css
+1
-1
enviroment.js
tinawebJS/enviroment.js
+14
-2
sigma.parseCustom.js
tinawebJS/sigma.parseCustom.js
+2
-3
No files found.
libs/css2/selection-panels.css
View file @
ab41b407
...
@@ -40,7 +40,7 @@
...
@@ -40,7 +40,7 @@
max-height
:
30%
;
max-height
:
30%
;
padding
:
0
5px
;
padding
:
0
5px
;
overflow-y
:
scroll
;
overflow-y
:
scroll
;
bottom
:
0
;
bottom
:
18px
;
left
:
0
;
left
:
0
;
border
:
solid
1px
black
;
border
:
solid
1px
black
;
background-color
:
white
;
background-color
:
white
;
...
...
tinawebJS/enviroment.js
View file @
ab41b407
...
@@ -97,11 +97,23 @@ function getHeatmapColors(nClasses) {
...
@@ -97,11 +97,23 @@ function getHeatmapColors(nClasses) {
}
}
// floor
// floor
let
skipStep
=
parseInt
(
listsLen
/
nHalfToPick
)
let
exactStep
=
listsLen
/
nHalfToPick
let
skipStep
=
parseInt
(
exactStep
)
// incrmt must be int (used for arr idx)
// cold colors
// to compensate for the fractional part
let
delta
=
exactStep
-
skipStep
let
drift
=
0
// cold colors, starting from deepest color
for
(
let
i
=
listsLen
-
1
;
i
>
0
;
i
-=
skipStep
)
{
for
(
let
i
=
listsLen
-
1
;
i
>
0
;
i
-=
skipStep
)
{
outColors
.
push
(
TW
.
gui
.
heatmapColorListToColdest
[
i
])
outColors
.
push
(
TW
.
gui
.
heatmapColorListToColdest
[
i
])
// catching back one step from time to time
drift
+=
delta
if
(
drift
>=
1
)
{
i
--
drift
-=
1
}
}
}
// white
// white
...
...
tinawebJS/sigma.parseCustom.js
View file @
ab41b407
...
@@ -410,9 +410,8 @@ function facetsBinning (valuesIdx) {
...
@@ -410,9 +410,8 @@ function facetsBinning (valuesIdx) {
// same interval each time
// same interval each time
let
step
=
(
vMax
-
vMin
)
/
nBins
let
step
=
(
vMax
-
vMin
)
/
nBins
for
(
var
i
=
0
;
i
<
nBins
;
i
++
)
{
for
(
var
k
=
vMin
;
k
<
vMax
;
k
+=
step
){
legendRefTicks
.
push
(
vMin
+
i
*
step
)
legendRefTicks
.
push
(
k
)
}
}
// NB these ticks are *minimums* so we stop one step *before* vMax
// NB these ticks are *minimums* so we stop one step *before* vMax
// and simply include it in last interval
// and simply include it in last interval
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment