Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Basthon
Basthon Kernel
Commits
62ff5f97
Commit
62ff5f97
authored
Oct 21, 2022
by
Romain Casati
Browse files
Python 3: fix matplotlib generated HTML.
parent
3c4e4b0e
Changes
3
Hide whitespace changes
Inline
Side-by-side
tests/data/python3_matplotlib_firefox.html
View file @
62ff5f97
<div
style=
"margin: 0 auto; text-align: center;width: 640.0px"
id=
"matplotlib_"
><div
id=
"matplotlib_top"
style=
"font-weight: bold; text-align: center"
>
Figure 1
</div><div
style=
"position: relative"
><canvas
id=
"matplotlib_nvas"
width=
"640"
height=
"480"
style=
"left: 0; top: 0; z-index: 0; outline: 0;width: 640.0px; height: 480.0px"
></canvas><canvas
id=
"matplotlib_rubberband"
width=
"640"
height=
"480"
style=
"position: absolute; left: 0px; top: 0px; z-index: 0; outline: currentcolor none 0px; width: 640px; height: 480px; cursor: default;"
tabindex=
"0"
></canvas></div><div><span><button
class=
"fa fa-home matplotlib-toolbar-button"
></button><button
class=
"fa fa-arrow-left matplotlib-toolbar-button"
></button><button
class=
"fa fa-arrow-right matplotlib-toolbar-button"
></button><span
style=
"min-width: 16px;"
>
</span><button
class=
"fa fa-arrows matplotlib-toolbar-button"
></button><button
class=
"fa fa-search-plus matplotlib-toolbar-button"
></button><span
style=
"min-width: 16px;"
>
</span><button
class=
"fa matplotlib-toolbar-button"
id=
"text"
>
pdf
</button><button
class=
"fa matplotlib-toolbar-button"
id=
"text"
>
png
</button><button
class=
"fa matplotlib-toolbar-button"
id=
"text"
>
svg
</button></span><div
id=
"matplotlib_message"
style=
"min-height: 1.5em"
></div></div></div>
\ No newline at end of file
<div
style=
"margin: 0 auto; text-align: center;width: 640.0px"
id=
"matplotlib_"
><div
id=
"matplotlib_top"
style=
"font-weight: bold; text-align: center"
>
Figure 1
</div><div
style=
"position: relative"
><canvas
id=
"matplotlib_nvas"
style=
"left: 0; top: 0; z-index: 0; outline: 0;width: 640.0px; height: 480.0px"
width=
"640"
height=
"480"
></canvas><canvas
id=
"matplotlib_rubberband"
style=
"position: absolute; left: 0px; top: 0px; z-index: 0; outline: currentcolor none 0px; width: 640px; height: 480px; cursor: default;"
tabindex=
"0"
width=
"640"
height=
"480"
></canvas></div><div><span><button
class=
"fa fa-home matplotlib-toolbar-button"
></button><button
class=
"fa fa-arrow-left matplotlib-toolbar-button"
></button><button
class=
"fa fa-arrow-right matplotlib-toolbar-button"
></button><span
style=
"min-width: 16px;"
>
</span><button
class=
"fa fa-arrows matplotlib-toolbar-button"
></button><button
class=
"fa fa-search-plus matplotlib-toolbar-button"
></button><span
style=
"min-width: 16px;"
>
</span><button
class=
"fa matplotlib-toolbar-button"
id=
"text"
>
pdf
</button><button
class=
"fa matplotlib-toolbar-button"
id=
"text"
>
png
</button><button
class=
"fa matplotlib-toolbar-button"
id=
"text"
>
svg
</button></span><div
id=
"matplotlib_message"
style=
"min-height: 1.5em"
></div></div></div>
\ No newline at end of file
tests/data/python3_matplotlib_firefox_old.html
View file @
62ff5f97
<div
style=
"margin: 0 auto; text-align: center;width: 640.0px"
id=
"matplotlib_"
><div
id=
"matplotlib_top"
style=
"font-weight: bold; text-align: center"
>
Figure 1
</div><div
style=
"position: relative"
><canvas
id=
"matplotlib_nvas"
width=
"640"
height=
"480"
style=
"left: 0; top: 0; z-index: 0; outline: 0;width: 640.0px; height: 480.0px"
></canvas><canvas
id=
"matplotlib_rubberband"
width=
"640"
height=
"480"
style=
"position: absolute; left: 0px; top: 0px; z-index: 0; outline: 0px none currentcolor; width: 640px; height: 480px; cursor: default;"
tabindex=
"0"
></canvas></div><div><span><button
class=
"fa fa-home matplotlib-toolbar-button"
></button><button
class=
"fa fa-arrow-left matplotlib-toolbar-button"
></button><button
class=
"fa fa-arrow-right matplotlib-toolbar-button"
></button><span
style=
"min-width: 16px;"
>
</span><button
class=
"fa fa-arrows matplotlib-toolbar-button"
></button><button
class=
"fa fa-search-plus matplotlib-toolbar-button"
></button><span
style=
"min-width: 16px;"
>
</span><button
class=
"fa matplotlib-toolbar-button"
id=
"text"
>
pdf
</button><button
class=
"fa matplotlib-toolbar-button"
id=
"text"
>
png
</button><button
class=
"fa matplotlib-toolbar-button"
id=
"text"
>
svg
</button></span><div
id=
"matplotlib_message"
style=
"min-height: 1.5em"
></div></div></div>
\ No newline at end of file
<div
style=
"margin: 0 auto; text-align: center;width: 640.0px"
id=
"matplotlib_"
><div
id=
"matplotlib_top"
style=
"font-weight: bold; text-align: center"
>
Figure 1
</div><div
style=
"position: relative"
><canvas
id=
"matplotlib_nvas"
width=
"640"
height=
"480"
style=
"left: 0; top: 0; z-index: 0; outline: 0;width: 640.0px; height: 480.0px"
></canvas><canvas
id=
"matplotlib_rubberband"
width=
"640"
height=
"480"
style=
"position: absolute; left: 0px; top: 0px; z-index: 0; outline: currentcolor none 0px; width: 640px; height: 480px; cursor: default;"
tabindex=
"0"
></canvas></div><div><span><button
class=
"fa fa-home matplotlib-toolbar-button"
></button><button
class=
"fa fa-arrow-left matplotlib-toolbar-button"
></button><button
class=
"fa fa-arrow-right matplotlib-toolbar-button"
></button><span
style=
"min-width: 16px;"
>
</span><button
class=
"fa fa-arrows matplotlib-toolbar-button"
></button><button
class=
"fa fa-search-plus matplotlib-toolbar-button"
></button><span
style=
"min-width: 16px;"
>
</span><button
class=
"fa matplotlib-toolbar-button"
id=
"text"
>
pdf
</button><button
class=
"fa matplotlib-toolbar-button"
id=
"text"
>
png
</button><button
class=
"fa matplotlib-toolbar-button"
id=
"text"
>
svg
</button></span><div
id=
"matplotlib_message"
style=
"min-height: 1.5em"
></div></div></div>
\ No newline at end of file
tests/data/python3_matplotlib_firefox_recent.html
View file @
62ff5f97
<div
style=
"margin: 0 auto; text-align: center;width: 640.0px"
id=
"matplotlib_"
><div
id=
"matplotlib_top"
style=
"font-weight: bold; text-align: center"
>
Figure 1
</div><div
style=
"position: relative"
><canvas
id=
"matplotlib_nvas"
style=
"left: 0; top: 0; z-index: 0; outline: 0;width: 640.0px; height: 480.0px"
width=
"640"
height=
"480"
></canvas><canvas
id=
"matplotlib_rubberband"
style=
"position: absolute; left: 0px; top: 0px; z-index: 0; outline: currentcolor none 0px; width: 640px; height: 480px; cursor: default;"
tabindex=
"0"
width=
"640"
height=
"480"
></canvas></div><div><span><button
class=
"fa fa-home matplotlib-toolbar-button"
></button><button
class=
"fa fa-arrow-left matplotlib-toolbar-button"
></button><button
class=
"fa fa-arrow-right matplotlib-toolbar-button"
></button><span
style=
"min-width: 16px;"
>
</span><button
class=
"fa fa-arrows matplotlib-toolbar-button"
></button><button
class=
"fa fa-search-plus matplotlib-toolbar-button"
></button><span
style=
"min-width: 16px;"
>
</span><button
class=
"fa matplotlib-toolbar-button"
id=
"text"
>
pdf
</button><button
class=
"fa matplotlib-toolbar-button"
id=
"text"
>
png
</button><button
class=
"fa matplotlib-toolbar-button"
id=
"text"
>
svg
</button></span><div
id=
"matplotlib_message"
style=
"min-height: 1.5em"
></div></div></div>
\ No newline at end of file
<div
style=
"margin: 0 auto; text-align: center;width: 640.0px"
id=
"matplotlib_"
><div
id=
"matplotlib_top"
style=
"font-weight: bold; text-align: center"
>
Figure 1
</div><div
style=
"position: relative"
><canvas
id=
"matplotlib_nvas"
style=
"left: 0; top: 0; z-index: 0; outline: 0;width: 640.0px; height: 480.0px"
width=
"640"
height=
"480"
></canvas><canvas
id=
"matplotlib_rubberband"
style=
"position: absolute; left: 0px; top: 0px; z-index: 0; outline: 0px; width: 640px; height: 480px; cursor: default;"
tabindex=
"0"
width=
"640"
height=
"480"
></canvas></div><div><span><button
class=
"fa fa-home matplotlib-toolbar-button"
></button><button
class=
"fa fa-arrow-left matplotlib-toolbar-button"
></button><button
class=
"fa fa-arrow-right matplotlib-toolbar-button"
></button><span
style=
"min-width: 16px;"
>
</span><button
class=
"fa fa-arrows matplotlib-toolbar-button"
></button><button
class=
"fa fa-search-plus matplotlib-toolbar-button"
></button><span
style=
"min-width: 16px;"
>
</span><button
class=
"fa matplotlib-toolbar-button"
id=
"text"
>
pdf
</button><button
class=
"fa matplotlib-toolbar-button"
id=
"text"
>
png
</button><button
class=
"fa matplotlib-toolbar-button"
id=
"text"
>
svg
</button></span><div
id=
"matplotlib_message"
style=
"min-height: 1.5em"
></div></div></div>
\ No newline at end of file
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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