MCPcopy Index your code
hub / github.com/plotly/plotly.py / initialize

Method initialize

js/src/widget.ts:530–542  ·  view source on GitHub ↗

* Initialize FigureModel. Called when the Python FigureWidget is first * constructed

()

Source from the content-addressed store, hash-verified

528 * constructed
529 */
530 initialize() {
531 this.model.on("change:_widget_data", () => this.do_data());
532 this.model.on("change:_widget_layout", () => this.do_layout());
533 this.model.on("change:_py2js_addTraces", () => this.do_addTraces());
534 this.model.on("change:_py2js_deleteTraces", () => this.do_deleteTraces());
535 this.model.on("change:_py2js_moveTraces", () => this.do_moveTraces());
536 this.model.on("change:_py2js_restyle", () => this.do_restyle());
537 this.model.on("change:_py2js_relayout", () => this.do_relayout());
538 this.model.on("change:_py2js_update", () => this.do_update());
539 this.model.on("change:_py2js_animate", () => this.do_animate());
540 this.model.on("change:_py2js_removeLayoutProps", () => this.do_removeLayoutProps());
541 this.model.on("change:_py2js_removeTraceProps", () => this.do_removeTraceProps());
542 }
543
544 /**
545 * Input a trace index specification and return an Array of trace

Callers 2

OFunction · 0.45
initializeFunction · 0.45

Calls 12

do_dataMethod · 0.95
do_layoutMethod · 0.95
do_addTracesMethod · 0.95
do_deleteTracesMethod · 0.95
do_moveTracesMethod · 0.95
do_restyleMethod · 0.95
do_relayoutMethod · 0.95
do_updateMethod · 0.95
do_animateMethod · 0.95
do_removeLayoutPropsMethod · 0.95
do_removeTracePropsMethod · 0.95
onMethod · 0.45

Tested by

no test coverage detected