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

Method set_ranges

js/src/Hist.ts:50–59  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

48 }
49
50 set_ranges() {
51 const x_scale = this.scales.sample;
52 if (x_scale) {
53 x_scale.setRange(this.parent.padded_range('x', x_scale.model));
54 }
55 const y_scale = this.scales.count;
56 if (y_scale) {
57 y_scale.setRange(this.parent.padded_range('y', y_scale.model));
58 }
59 }
60
61 set_positional_scales() {
62 // In the case of Hist, a change in the "sample" scale triggers

Callers 2

relayoutMethod · 0.95
drawMethod · 0.95

Calls 1

padded_rangeMethod · 0.80

Tested by

no test coverage detected