MCPcopy Index your code
hub / github.com/bqplot/bqplot / create_figure_gridheatmap

Function create_figure_gridheatmap

js/src/test/widget-utils.ts:416–500  ·  view source on GitHub ↗
(manager, color)

Source from the content-addressed store, hash-verified

414}
415
416export async function create_figure_gridheatmap(manager, color) {
417 const layout = await create_model(
418 manager,
419 '@jupyter-widgets/base',
420 'LayoutModel',
421 'LayoutView',
422 'layout_figure1',
423 { _dom_classes: '', width: '400px', height: '500px' }
424 );
425 const scale_x = await create_model_bqscales(
426 manager,
427 'LinearScale',
428 'scale_x',
429 {
430 min: 0,
431 max: 1,
432 allow_padding: false,
433 }
434 );
435 const scale_y = await create_model_bqscales(
436 manager,
437 'LinearScale',
438 'scale_y',
439 {
440 min: 0,
441 max: 1,
442 allow_padding: false,
443 }
444 );
445 const scale_row = await create_model_bqscales(
446 manager,
447 'OrdinalScale',
448 'scale_row',
449 { reverse: true }
450 );
451 const scale_column = await create_model_bqscales(
452 manager,
453 'OrdinalScale',
454 'scale_column',
455 {}
456 );
457 const scale_color = await create_model_bqscales(
458 manager,
459 'ColorScale',
460 'scale_color',
461 { scheme: 'RdYlGn', colors: [] }
462 );
463 const scales = {
464 color: scale_color.toJSON(),
465 row: scale_row.toJSON(),
466 column: scale_column.toJSON(),
467 };
468
469 const gridModel = await create_model_bqplot(
470 manager,
471 'GridHeatMap',
472 'gridheatmap1',
473 {

Callers 1

gridheatmap.tsFile · 0.90

Calls 5

create_modelFunction · 0.85
create_model_bqscalesFunction · 0.85
create_model_bqplotFunction · 0.85
create_viewFunction · 0.85
display_viewMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…