10000 webagg: Don't send figure pixel ratio too early. · matplotlib/matplotlib@30a900f · GitHub
[go: up one dir, main page]

Skip to content

Commit 30a900f

Browse files
committed
webagg: Don't send figure pixel ratio too early.
This is already done in the WebSocket's `onopen` function, and sending it during the object's initialization crashes due to the WebSocket not being ready. Fixes #19129.
1 parent a02ffbc commit 30a900f

File tree

1 file changed

+0
-3
lines changed
  • lib/matplotlib/backends/web_backend/js

1 file changed

+0
-3
lines changed

lib/matplotlib/backends/web_backend/js/mpl.js

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -157,9 +157,6 @@ mpl.figure.prototype._init_canvas = function () {
157157
1;
158158

159159
this.ratio = (window.devicePixelRatio || 1) / backingStore;
160-
if (this.ratio !== 1) {
161-
fig.send_message('set_dpi_ratio', { dpi_ratio: this.ratio });
162-
}
163160

164161
var rubberband_canvas = (this.rubberband_canvas = document.createElement(
165162
'canvas'

0 commit comments

Comments
 (0)
0