This repository was archived by the owner on Jul 28, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +21
-0
lines changed Expand file tree Collapse file tree 1 file changed +21
-0
lines changed Original file line number Diff line number Diff line change
1
+ #
2
+ # HTMl5 Canvas backend for Matplotlib to use when running Matplotlib in Pyodide, first
3
+ # introduced via a Google Summer of Code 2019 project:
4
+ # https://summerofcode.withgoogle.com/archive/2019/projects/4683094261497856
5
+ #
6
+ # Associated blog post:
7
+ # https://blog.pyodide.org/posts/canvas-renderer-matplotlib-in-pyodide
8
+ #
9
+ # TODO: As of release 0.2.3, this backend is not yet fully functional following
10
+ # an update from Matplotlib 3.5.2 to 3.8.4 in Pyodide in-tree, please refer to
11
+ # https://github.com/pyodide/pyodide/pull/4510.
12
+ #
13
+ # This backend has been redirected to use the WASM backend in the meantime, which
14
+ # is now fully functional. The source code for the HTML5 Canvas backend is still
15
+ # available in this file, and shall be updated to work in a future release.
16
+ #
17
+ # Readers are advised to look at https://github.com/pyodide/matplotlib-pyodide/issues/64
18
+ # and at https://github.com/pyodide/matplotlib-pyodide/pull/65 for information
19
+ # around the status of this backend and on how to contribute to its restoration
20
+ # for future releases. Thank you!
21
+
1
22
import base64
2
23
import io
3
24
import math
You can’t perform that action at this time.
0 commit comments