pFad - Phone/Frame/Anonymizer/Declutterfier! Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

URL: http://github.com/matplotlib/matplotlib/commit/30a900f20ca146d40a633a0b4f77077240c92a95

igin="anonymous" media="all" rel="stylesheet" href="https://github.githubassets.com/assets/global-9c8f61f9f58ad7b2.css" /> webagg: Don't send figure pixel ratio too early. · matplotlib/matplotlib@30a900f · GitHub
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

1 file changed

Lines changed: 0 additions & 3 deletions

File tree

  • lib/matplotlib/backends/web_backend/js

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)
pFad - Phonifier reborn

Pfad - The Proxy pFad © 2024 Your Company Name. All rights reserved.





Check this box to remove all script contents from the fetched content.



Check this box to remove all images from the fetched content.


Check this box to remove all CSS styles from the fetched content.


Check this box to keep images inefficiently compressed and original size.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy