Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
P
pyodide
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Boxiang Sun
pyodide
Commits
68de9439
Commit
68de9439
authored
Feb 21, 2019
by
Michael Droettboom
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix matplotlib wasm backend after undefined attribute behavior changed
parent
8da4b1f5
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
7 deletions
+7
-7
packages/matplotlib/src/wasm_backend.py
packages/matplotlib/src/wasm_backend.py
+7
-7
No files found.
packages/matplotlib/src/wasm_backend.py
View file @
68de9439
...
...
@@ -90,15 +90,15 @@ class FigureCanvasWasm(backend_agg.FigureCanvasAgg):
This is typically 2 on a HiDPI ("Retina") display, and 1 otherwise.
"""
backing_store
=
(
context
.
backingStorePixelRatio
or
context
.
webkitBackingStorePixel
or
context
.
mozBackingStorePixelRatio
or
context
.
msBackingStorePixelRatio
or
context
.
oBackingStorePixelRatio
or
context
.
backendStorePixelRatio
or
getattr
(
context
,
'backingStorePixelRatio'
,
0
)
or
getattr
(
context
,
'webkitBackingStorePixel'
,
0
)
or
getattr
(
context
,
'mozBackingStorePixelRatio'
,
0
)
or
getattr
(
context
,
'msBackingStorePixelRatio'
,
0
)
or
getattr
(
context
,
'oBackingStorePixelRatio'
,
0
)
or
getattr
(
context
,
'backendStorePixelRatio'
,
0
)
or
1
)
return
(
window
.
devicePixelRatio
or
1
)
/
backing_store
return
(
getattr
(
window
,
'devicePixelRatio'
,
0
)
or
1
)
/
backing_store
def
create_root_element
(
self
):
# Designed to be overridden by subclasses for use in contexts other
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment