File tree 2 files changed +13
-3
lines changed
2 files changed +13
-3
lines changed Original file line number Diff line number Diff line change 3
3
"version" : " 0.1.0" ,
4
4
"description" : " A Custom Jupyter Widget Library for Progressivis" ,
5
5
"author" : " Jean-Daniel Fekete" ,
6
+ "license" : " BSD-2-Clause" ,
6
7
"main" : " lib/index.js" ,
7
8
"repository" : {
8
9
"type" : " git" ,
52
53
"style-loader" : " ^3.3.3" ,
53
54
"svg-inline-loader" : " ^0.8.2" ,
54
55
"webpack" : " ^5" ,
55
- "webpack-cli" : " ^3.3.11 " ,
56
+ "webpack-cli" : " ^5.1.4 " ,
56
57
"webpack-dev-server" : " ^3.10.3"
57
58
},
58
59
"dependencies" : {
Original file line number Diff line number Diff line change @@ -267,7 +267,11 @@ def refresh_info_hist_1d(
267
267
min_ = res ["min" ]
268
268
max_ = res ["max" ]
269
269
bins_ = np .linspace (min_ , max_ , len (hist ))
270
- source = pd .DataFrame ({"xvals" : bins_ , "nbins" : range (len (hist )), "level" : hist })
270
+ source = pd .DataFrame ({
271
+ "xvals" : bins_ ,
272
+ "nbins" : range (len (hist )),
273
+ "level" : hist
274
+ })
271
275
hout .children [1 ].update ("data" , remove = "true" , insert = source )
272
276
h1d_mod .updated_once = True # type: ignore
273
277
@@ -283,7 +287,12 @@ def refresh_info_h2d(
283
287
last = h2d_mod .result .last ()
284
288
assert last
285
289
res = last .to_dict ()
286
- hist = np .cbrt (res ["array" ])
290
+ arr = res ["array" ]
291
+ maxa = arr .max ()
292
+ if maxa != 0 :
293
+ hist = np .cbrt (arr / maxa )
294
+ else :
295
+ hist = maxa
287
296
hout .update ("data" , insert = hist , remove = "true" )
288
297
h2d_mod .updated_once = True # type: ignore
289
298
You can’t perform that action at this time.
0 commit comments