Skip to content

armgit / manim

Public Imported from GitHub
0

A community-maintained Python framework for creating mathematical animations.

added test_graph (data and cache)

Hugues Devimeux22b408b485a3
diff --git a/tests/test_graph.py b/tests/test_graph.py
index 205bfd117..9c8756255 100644
--- a/tests/test_graph.py
+++ b/tests/test_graph.py
@@ -13,7 +13,16 @@ class PlotFunctions(GraphScene):
}
def construct(self):
+ constants.TEX_TEMPLATE = TexTemplate()
+
self.setup_axes()
f = self.get_graph(lambda x : x**2)
- self.play(Animation(f))
\ No newline at end of file
+ self.play(Animation(f))
+
+def test_scenes(get_config_test, Tester):
+ CONFIG = get_config_test
+ module_name = os.path.splitext(os.path.basename(__file__))[
+ 0].replace('test_', '')
+ for name, scene_tested in inspect.getmembers(sys.modules[__name__], lambda m: inspect.isclass(m) and m.__module__ == __name__):
+ Tester(scene_tested, CONFIG, module_name, caching_needed=True).test()
\ No newline at end of file
diff --git a/tests/tests_cache/graph/PlotFunctions/Tex/3623b72242f36fa9.aux b/tests/tests_cache/graph/PlotFunctions/Tex/3623b72242f36fa9.aux
new file mode 100644
index 000000000..64ae5c5e4
--- /dev/null
+++ b/tests/tests_cache/graph/PlotFunctions/Tex/3623b72242f36fa9.aux
@@ -0,0 +1,3 @@
+\relax
+\providecommand\babel@aux[2]{}
+\@nameuse{bbl@beforestart}
diff --git a/tests/tests_cache/graph/PlotFunctions/Tex/3623b72242f36fa9.dvi b/tests/tests_cache/graph/PlotFunctions/Tex/3623b72242f36fa9.dvi
new file mode 100644
index 000000000..bfd726531
Binary files /dev/null and b/tests/tests_cache/graph/PlotFunctions/Tex/3623b72242f36fa9.dvi differ
diff --git a/tests/tests_cache/graph/PlotFunctions/Tex/3623b72242f36fa9.svg b/tests/tests_cache/graph/PlotFunctions/Tex/3623b72242f36fa9.svg
new file mode 100644
index 000000000..260887c83
--- /dev/null
+++ b/tests/tests_cache/graph/PlotFunctions/Tex/3623b72242f36fa9.svg
@@ -0,0 +1,10 @@
+<?xml version='1.0' encoding='UTF-8'?>
+<!-- This file was generated by dvisvgm 2.8.2 -->
+<svg version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' width='5.241955pt' height='6.22665pt' viewBox='169.234572 -4.289468 5.241955 6.22665'>
+<defs>
+<path id='g0-121' d='M4.841843-3.795766C4.881694-3.935243 4.881694-3.955168 4.881694-4.024907C4.881694-4.204234 4.742217-4.293898 4.592777-4.293898C4.493151-4.293898 4.333748-4.234122 4.244085-4.084682C4.224159-4.034869 4.144458-3.726027 4.104608-3.5467C4.034869-3.287671 3.965131-3.01868 3.905355-2.749689L3.457036-.956413C3.417186-.806974 2.988792-.109589 2.331258-.109589C1.823163-.109589 1.713574-.547945 1.713574-.916563C1.713574-1.374844 1.882939-1.992528 2.221669-2.86924C2.381071-3.277709 2.420922-3.387298 2.420922-3.58655C2.420922-4.034869 2.102117-4.403487 1.603985-4.403487C.657534-4.403487 .288917-2.958904 .288917-2.86924C.288917-2.769614 .388543-2.769614 .408468-2.769614C.508095-2.769614 .518057-2.789539 .56787-2.948941C.836862-3.88543 1.235367-4.184309 1.574097-4.184309C1.653798-4.184309 1.823163-4.184309 1.823163-3.865504C1.823163-3.616438 1.723537-3.35741 1.653798-3.16812C1.255293-2.11208 1.075965-1.544209 1.075965-1.075965C1.075965-.18929 1.703611 .109589 2.291407 .109589C2.67995 .109589 3.01868-.059776 3.297634-.33873C3.16812 .179328 3.048568 .667497 2.650062 1.195517C2.391034 1.534247 2.012453 1.823163 1.554172 1.823163C1.414695 1.823163 .966376 1.793275 .797011 1.404732C.956413 1.404732 1.085928 1.404732 1.225405 1.285181C1.325031 1.195517 1.424658 1.066002 1.424658 .876712C1.424658 .56787 1.155666 .52802 1.05604 .52802C.826899 .52802 .498132 .687422 .498132 1.175592C.498132 1.673724 .936488 2.042341 1.554172 2.042341C2.580324 2.042341 3.606476 1.135741 3.88543 .009963L4.841843-3.795766Z'/>
+</defs>
+<g id='page1'>
+<use x='169.234572' y='0' xlink:href='#g0-121'/>
+</g>
+</svg>
\ No newline at end of file
diff --git a/tests/tests_cache/graph/PlotFunctions/Tex/3623b72242f36fa9.tex b/tests/tests_cache/graph/PlotFunctions/Tex/3623b72242f36fa9.tex
new file mode 100644
index 000000000..6314f26a7
--- /dev/null
+++ b/tests/tests_cache/graph/PlotFunctions/Tex/3623b72242f36fa9.tex
@@ -0,0 +1,8 @@
+\documentclass[preview]{standalone}\usepackage[english]{babel}\usepackage{amsmath}\usepackage{amssymb}\usepackage{dsfont}\usepackage{setspace}\usepackage{tipa}\usepackage{relsize}\usepackage{textcomp}\usepackage{mathrsfs}\usepackage{calligra}\usepackage{wasysym}\usepackage{ragged2e}\usepackage{physics}\usepackage{xcolor}\usepackage{microtype}\linespread{1}
+\DisableLigatures{encoding = *, family = *}
+
+\begin{document}
+
+\centering $y$
+
+\end{document}
\ No newline at end of file
diff --git a/tests/tests_cache/graph/PlotFunctions/Tex/4c165d8733e6b394.aux b/tests/tests_cache/graph/PlotFunctions/Tex/4c165d8733e6b394.aux
new file mode 100644
index 000000000..64ae5c5e4
--- /dev/null
+++ b/tests/tests_cache/graph/PlotFunctions/Tex/4c165d8733e6b394.aux
@@ -0,0 +1,3 @@
+\relax
+\providecommand\babel@aux[2]{}
+\@nameuse{bbl@beforestart}
diff --git a/tests/tests_cache/graph/PlotFunctions/Tex/4c165d8733e6b394.dvi b/tests/tests_cache/graph/PlotFunctions/Tex/4c165d8733e6b394.dvi
new file mode 100644
index 000000000..afb06d32b
Binary files /dev/null and b/tests/tests_cache/graph/PlotFunctions/Tex/4c165d8733e6b394.dvi differ
diff --git a/tests/tests_cache/graph/PlotFunctions/Tex/4c165d8733e6b394.svg b/tests/tests_cache/graph/PlotFunctions/Tex/4c165d8733e6b394.svg
new file mode 100644
index 000000000..d177e3864
--- /dev/null
+++ b/tests/tests_cache/graph/PlotFunctions/Tex/4c165d8733e6b394.svg
@@ -0,0 +1,10 @@
+<?xml version='1.0' encoding='UTF-8'?>
+<!-- This file was generated by dvisvgm 2.8.2 -->
+<svg version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' width='5.241955pt' height='6.22665pt' viewBox='0 -4.289468 5.241955 6.22665'>
+<defs>
+<path id='g0-121' d='M4.841843-3.795766C4.881694-3.935243 4.881694-3.955168 4.881694-4.024907C4.881694-4.204234 4.742217-4.293898 4.592777-4.293898C4.493151-4.293898 4.333748-4.234122 4.244085-4.084682C4.224159-4.034869 4.144458-3.726027 4.104608-3.5467C4.034869-3.287671 3.965131-3.01868 3.905355-2.749689L3.457036-.956413C3.417186-.806974 2.988792-.109589 2.331258-.109589C1.823163-.109589 1.713574-.547945 1.713574-.916563C1.713574-1.374844 1.882939-1.992528 2.221669-2.86924C2.381071-3.277709 2.420922-3.387298 2.420922-3.58655C2.420922-4.034869 2.102117-4.403487 1.603985-4.403487C.657534-4.403487 .288917-2.958904 .288917-2.86924C.288917-2.769614 .388543-2.769614 .408468-2.769614C.508095-2.769614 .518057-2.789539 .56787-2.948941C.836862-3.88543 1.235367-4.184309 1.574097-4.184309C1.653798-4.184309 1.823163-4.184309 1.823163-3.865504C1.823163-3.616438 1.723537-3.35741 1.653798-3.16812C1.255293-2.11208 1.075965-1.544209 1.075965-1.075965C1.075965-.18929 1.703611 .109589 2.291407 .109589C2.67995 .109589 3.01868-.059776 3.297634-.33873C3.16812 .179328 3.048568 .667497 2.650062 1.195517C2.391034 1.534247 2.012453 1.823163 1.554172 1.823163C1.414695 1.823163 .966376 1.793275 .797011 1.404732C.956413 1.404732 1.085928 1.404732 1.225405 1.285181C1.325031 1.195517 1.424658 1.066002 1.424658 .876712C1.424658 .56787 1.155666 .52802 1.05604 .52802C.826899 .52802 .498132 .687422 .498132 1.175592C.498132 1.673724 .936488 2.042341 1.554172 2.042341C2.580324 2.042341 3.606476 1.135741 3.88543 .009963L4.841843-3.795766Z'/>
+</defs>
+<g id='page1'>
+<use x='0' y='0' xlink:href='#g0-121'/>
+</g>
+</svg>
\ No newline at end of file
diff --git a/tests/tests_cache/graph/PlotFunctions/Tex/4c165d8733e6b394.tex b/tests/tests_cache/graph/PlotFunctions/Tex/4c165d8733e6b394.tex
new file mode 100644
index 000000000..333c5610b
--- /dev/null
+++ b/tests/tests_cache/graph/PlotFunctions/Tex/4c165d8733e6b394.tex
@@ -0,0 +1,8 @@
+\documentclass[preview]{standalone}\usepackage[english]{babel}\usepackage{amsmath}\usepackage{amssymb}\usepackage{dsfont}\usepackage{setspace}\usepackage{tipa}\usepackage{relsize}\usepackage{textcomp}\usepackage{mathrsfs}\usepackage{calligra}\usepackage{wasysym}\usepackage{ragged2e}\usepackage{physics}\usepackage{xcolor}\usepackage{microtype}\linespread{1}
+\DisableLigatures{encoding = *, family = *}
+
+\begin{document}
+
+$y$
+
+\end{document}
\ No newline at end of file
diff --git a/tests/tests_cache/graph/PlotFunctions/Tex/5b246d8c932af71a.aux b/tests/tests_cache/graph/PlotFunctions/Tex/5b246d8c932af71a.aux
new file mode 100644
index 000000000..64ae5c5e4
--- /dev/null
+++ b/tests/tests_cache/graph/PlotFunctions/Tex/5b246d8c932af71a.aux
@@ -0,0 +1,3 @@
+\relax
+\providecommand\babel@aux[2]{}
+\@nameuse{bbl@beforestart}
diff --git a/tests/tests_cache/graph/PlotFunctions/Tex/5b246d8c932af71a.dvi b/tests/tests_cache/graph/PlotFunctions/Tex/5b246d8c932af71a.dvi
new file mode 100644
index 000000000..c0b10377f
Binary files /dev/null and b/tests/tests_cache/graph/PlotFunctions/Tex/5b246d8c932af71a.dvi differ
diff --git a/tests/tests_cache/graph/PlotFunctions/Tex/5b246d8c932af71a.svg b/tests/tests_cache/graph/PlotFunctions/Tex/5b246d8c932af71a.svg
new file mode 100644
index 000000000..6f9673807
--- /dev/null
+++ b/tests/tests_cache/graph/PlotFunctions/Tex/5b246d8c932af71a.svg
@@ -0,0 +1,10 @@
+<?xml version='1.0' encoding='UTF-8'?>
+<!-- This file was generated by dvisvgm 2.8.2 -->
+<svg version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' width='4.981339pt' height='6.420368pt' viewBox='169.364866 -6.420368 4.981339 6.420368'>
+<defs>
+<path id='g0-54' d='M1.315068-3.267746V-3.506849C1.315068-6.027397 2.550436-6.386052 3.058531-6.386052C3.297634-6.386052 3.716065-6.326276 3.935243-5.987547C3.785803-5.987547 3.387298-5.987547 3.387298-5.539228C3.387298-5.230386 3.626401-5.080946 3.845579-5.080946C4.004981-5.080946 4.303861-5.17061 4.303861-5.559153C4.303861-6.156912 3.865504-6.635118 3.038605-6.635118C1.763387-6.635118 .418431-5.349938 .418431-3.148194C.418431-.488169 1.574097 .219178 2.500623 .219178C3.606476 .219178 4.552927-.71731 4.552927-2.032379C4.552927-3.297634 3.666252-4.254047 2.560399-4.254047C1.882939-4.254047 1.514321-3.745953 1.315068-3.267746ZM2.500623-.059776C1.872976-.059776 1.574097-.657534 1.514321-.806974C1.334994-1.275218 1.334994-2.072229 1.334994-2.251557C1.334994-3.028643 1.653798-4.024907 2.550436-4.024907C2.709838-4.024907 3.16812-4.024907 3.476961-3.407223C3.656289-3.038605 3.656289-2.530511 3.656289-2.042341C3.656289-1.564134 3.656289-1.066002 3.486924-.707347C3.188045-.109589 2.729763-.059776 2.500623-.059776Z'/>
+</defs>
+<g id='page1'>
+<use x='169.364866' y='0' xlink:href='#g0-54'/>
+</g>
+</svg>
\ No newline at end of file
diff --git a/tests/tests_cache/graph/PlotFunctions/Tex/5b246d8c932af71a.tex b/tests/tests_cache/graph/PlotFunctions/Tex/5b246d8c932af71a.tex
new file mode 100644
index 000000000..331337733
--- /dev/null
+++ b/tests/tests_cache/graph/PlotFunctions/Tex/5b246d8c932af71a.tex
@@ -0,0 +1,10 @@
+\documentclass[preview]{standalone}\usepackage[english]{babel}\usepackage{amsmath}\usepackage{amssymb}\usepackage{dsfont}\usepackage{setspace}\usepackage{tipa}\usepackage{relsize}\usepackage{textcomp}\usepackage{mathrsfs}\usepackage{calligra}\usepackage{wasysym}\usepackage{ragged2e}\usepackage{physics}\usepackage{xcolor}\usepackage{microtype}\linespread{1}
+\DisableLigatures{encoding = *, family = *}
+
+\begin{document}
+
+\begin{align*}
+6
+\end{align*}
+
+\end{document}
\ No newline at end of file
diff --git a/tests/tests_cache/graph/PlotFunctions/Tex/62daeedc9e87677e.aux b/tests/tests_cache/graph/PlotFunctions/Tex/62daeedc9e87677e.aux
new file mode 100644
index 000000000..64ae5c5e4
--- /dev/null
+++ b/tests/tests_cache/graph/PlotFunctions/Tex/62daeedc9e87677e.aux
@@ -0,0 +1,3 @@
+\relax
+\providecommand\babel@aux[2]{}
+\@nameuse{bbl@beforestart}
diff --git a/tests/tests_cache/graph/PlotFunctions/Tex/62daeedc9e87677e.dvi b/tests/tests_cache/graph/PlotFunctions/Tex/62daeedc9e87677e.dvi
new file mode 100644
index 000000000..fa85fc38c
Binary files /dev/null and b/tests/tests_cache/graph/PlotFunctions/Tex/62daeedc9e87677e.dvi differ
diff --git a/tests/tests_cache/graph/PlotFunctions/Tex/62daeedc9e87677e.svg b/tests/tests_cache/graph/PlotFunctions/Tex/62daeedc9e87677e.svg
new file mode 100644
index 000000000..ca53800f4
--- /dev/null
+++ b/tests/tests_cache/graph/PlotFunctions/Tex/62daeedc9e87677e.svg
@@ -0,0 +1,10 @@
+<?xml version='1.0' encoding='UTF-8'?>
+<!-- This file was generated by dvisvgm 2.8.2 -->
+<svg version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' width='4.981339pt' height='6.420368pt' viewBox='169.364866 -6.420368 4.981339 6.420368'>
+<defs>
+<path id='g0-52' d='M2.929016-1.643836V-.777086C2.929016-.418431 2.909091-.308842 2.171856-.308842H1.96264V0C2.371108-.029888 2.889166-.029888 3.307597-.029888S4.254047-.029888 4.662516 0V-.308842H4.4533C3.716065-.308842 3.696139-.418431 3.696139-.777086V-1.643836H4.692403V-1.952677H3.696139V-6.485679C3.696139-6.684932 3.696139-6.744707 3.536737-6.744707C3.447073-6.744707 3.417186-6.744707 3.337484-6.625156L.278954-1.952677V-1.643836H2.929016ZM2.988792-1.952677H.557908L2.988792-5.668742V-1.952677Z'/>
+</defs>
+<g id='page1'>
+<use x='169.364866' y='0' xlink:href='#g0-52'/>
+</g>
+</svg>
\ No newline at end of file
diff --git a/tests/tests_cache/graph/PlotFunctions/Tex/62daeedc9e87677e.tex b/tests/tests_cache/graph/PlotFunctions/Tex/62daeedc9e87677e.tex
new file mode 100644
index 000000000..454c71f5e
--- /dev/null
+++ b/tests/tests_cache/graph/PlotFunctions/Tex/62daeedc9e87677e.tex
@@ -0,0 +1,10 @@
+\documentclass[preview]{standalone}\usepackage[english]{babel}\usepackage{amsmath}\usepackage{amssymb}\usepackage{dsfont}\usepackage{setspace}\usepackage{tipa}\usepackage{relsize}\usepackage{textcomp}\usepackage{mathrsfs}\usepackage{calligra}\usepackage{wasysym}\usepackage{ragged2e}\usepackage{physics}\usepackage{xcolor}\usepackage{microtype}\linespread{1}
+\DisableLigatures{encoding = *, family = *}
+
+\begin{document}
+
+\begin{align*}
+4
+\end{align*}
+
+\end{document}
\ No newline at end of file
diff --git a/tests/tests_cache/graph/PlotFunctions/Tex/66150e0224a73e5f.aux b/tests/tests_cache/graph/PlotFunctions/Tex/66150e0224a73e5f.aux
new file mode 100644
index 000000000..64ae5c5e4
--- /dev/null
+++ b/tests/tests_cache/graph/PlotFunctions/Tex/66150e0224a73e5f.aux
@@ -0,0 +1,3 @@
+\relax
+\providecommand\babel@aux[2]{}
+\@nameuse{bbl@beforestart}
diff --git a/tests/tests_cache/graph/PlotFunctions/Tex/66150e0224a73e5f.dvi b/tests/tests_cache/graph/PlotFunctions/Tex/66150e0224a73e5f.dvi
new file mode 100644
index 000000000..6645c432e
Binary files /dev/null and b/tests/tests_cache/graph/PlotFunctions/Tex/66150e0224a73e5f.dvi differ
diff --git a/tests/tests_cache/graph/PlotFunctions/Tex/66150e0224a73e5f.svg b/tests/tests_cache/graph/PlotFunctions/Tex/66150e0224a73e5f.svg
new file mode 100644
index 000000000..f179d229a
--- /dev/null
+++ b/tests/tests_cache/graph/PlotFunctions/Tex/66150e0224a73e5f.svg
@@ -0,0 +1,10 @@
+<?xml version='1.0' encoding='UTF-8'?>
+<!-- This file was generated by dvisvgm 2.8.2 -->
+<svg version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' width='7.748748pt' height='6.641773pt' viewBox='167.98117 -5.811546 7.748748 6.641773'>
+<defs>
+<path id='g0-0' d='M6.56538-2.291407C6.734745-2.291407 6.914072-2.291407 6.914072-2.49066S6.734745-2.689913 6.56538-2.689913H1.175592C1.006227-2.689913 .826899-2.689913 .826899-2.49066S1.006227-2.291407 1.175592-2.291407H6.56538Z'/>
+</defs>
+<g id='page1'>
+<use x='167.98117' y='0' xlink:href='#g0-0'/>
+</g>
+</svg>
\ No newline at end of file
diff --git a/tests/tests_cache/graph/PlotFunctions/Tex/66150e0224a73e5f.tex b/tests/tests_cache/graph/PlotFunctions/Tex/66150e0224a73e5f.tex
new file mode 100644
index 000000000..533775924
--- /dev/null
+++ b/tests/tests_cache/graph/PlotFunctions/Tex/66150e0224a73e5f.tex
@@ -0,0 +1,10 @@
+\documentclass[preview]{standalone}\usepackage[english]{babel}\usepackage{amsmath}\usepackage{amssymb}\usepackage{dsfont}\usepackage{setspace}\usepackage{tipa}\usepackage{relsize}\usepackage{textcomp}\usepackage{mathrsfs}\usepackage{calligra}\usepackage{wasysym}\usepackage{ragged2e}\usepackage{physics}\usepackage{xcolor}\usepackage{microtype}\linespread{1}
+\DisableLigatures{encoding = *, family = *}
+
+\begin{document}
+
+\begin{align*}
+-
+\end{align*}
+
+\end{document}
\ No newline at end of file
diff --git a/tests/tests_cache/graph/PlotFunctions/Tex/6896c368b863add8.aux b/tests/tests_cache/graph/PlotFunctions/Tex/6896c368b863add8.aux
new file mode 100644
index 000000000..64ae5c5e4
--- /dev/null
+++ b/tests/tests_cache/graph/PlotFunctions/Tex/6896c368b863add8.aux
@@ -0,0 +1,3 @@
+\relax
+\providecommand\babel@aux[2]{}
+\@nameuse{bbl@beforestart}
diff --git a/tests/tests_cache/graph/PlotFunctions/Tex/6896c368b863add8.dvi b/tests/tests_cache/graph/PlotFunctions/Tex/6896c368b863add8.dvi
new file mode 100644
index 000000000..2f941cd4e
Binary files /dev/null and b/tests/tests_cache/graph/PlotFunctions/Tex/6896c368b863add8.dvi differ
diff --git a/tests/tests_cache/graph/PlotFunctions/Tex/6896c368b863add8.svg b/tests/tests_cache/graph/PlotFunctions/Tex/6896c368b863add8.svg
new file mode 100644
index 000000000..7ccce6306
--- /dev/null
+++ b/tests/tests_cache/graph/PlotFunctions/Tex/6896c368b863add8.svg
@@ -0,0 +1,10 @@
+<?xml version='1.0' encoding='UTF-8'?>
+<!-- This file was generated by dvisvgm 2.8.2 -->
+<svg version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' width='4.981339pt' height='6.420368pt' viewBox='169.364866 -6.420368 4.981339 6.420368'>
+<defs>
+<path id='g0-49' d='M2.929016-6.37609C2.929016-6.615193 2.929016-6.635118 2.699875-6.635118C2.082192-5.997509 1.205479-5.997509 .886675-5.997509V-5.688667C1.085928-5.688667 1.673724-5.688667 2.191781-5.947696V-.787049C2.191781-.428394 2.161893-.308842 1.265255-.308842H.946451V0C1.295143-.029888 2.161893-.029888 2.560399-.029888S3.825654-.029888 4.174346 0V-.308842H3.855542C2.958904-.308842 2.929016-.418431 2.929016-.787049V-6.37609Z'/>
+</defs>
+<g id='page1'>
+<use x='169.364866' y='0' xlink:href='#g0-49'/>
+</g>
+</svg>
\ No newline at end of file
diff --git a/tests/tests_cache/graph/PlotFunctions/Tex/6896c368b863add8.tex b/tests/tests_cache/graph/PlotFunctions/Tex/6896c368b863add8.tex
new file mode 100644
index 000000000..e76c2410b
--- /dev/null
+++ b/tests/tests_cache/graph/PlotFunctions/Tex/6896c368b863add8.tex
@@ -0,0 +1,10 @@
+\documentclass[preview]{standalone}\usepackage[english]{babel}\usepackage{amsmath}\usepackage{amssymb}\usepackage{dsfont}\usepackage{setspace}\usepackage{tipa}\usepackage{relsize}\usepackage{textcomp}\usepackage{mathrsfs}\usepackage{calligra}\usepackage{wasysym}\usepackage{ragged2e}\usepackage{physics}\usepackage{xcolor}\usepackage{microtype}\linespread{1}
+\DisableLigatures{encoding = *, family = *}
+
+\begin{document}
+
+\begin{align*}
+1
+\end{align*}
+
+\end{document}
\ No newline at end of file
diff --git a/tests/tests_cache/graph/PlotFunctions/Tex/7399563bee7ad4e5.aux b/tests/tests_cache/graph/PlotFunctions/Tex/7399563bee7ad4e5.aux
new file mode 100644
index 000000000..64ae5c5e4
--- /dev/null
+++ b/tests/tests_cache/graph/PlotFunctions/Tex/7399563bee7ad4e5.aux
@@ -0,0 +1,3 @@
+\relax
+\providecommand\babel@aux[2]{}
+\@nameuse{bbl@beforestart}
diff --git a/tests/tests_cache/graph/PlotFunctions/Tex/7399563bee7ad4e5.dvi b/tests/tests_cache/graph/PlotFunctions/Tex/7399563bee7ad4e5.dvi
new file mode 100644
index 000000000..8302b9e8e
Binary files /dev/null and b/tests/tests_cache/graph/PlotFunctions/Tex/7399563bee7ad4e5.dvi differ
diff --git a/tests/tests_cache/graph/PlotFunctions/Tex/7399563bee7ad4e5.svg b/tests/tests_cache/graph/PlotFunctions/Tex/7399563bee7ad4e5.svg
new file mode 100644
index 000000000..d667ac079
--- /dev/null
+++ b/tests/tests_cache/graph/PlotFunctions/Tex/7399563bee7ad4e5.svg
@@ -0,0 +1,10 @@
+<?xml version='1.0' encoding='UTF-8'?>
+<!-- This file was generated by dvisvgm 2.8.2 -->
+<svg version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' width='4.981339pt' height='6.420368pt' viewBox='169.364866 -6.420368 4.981339 6.420368'>
+<defs>
+<path id='g0-50' d='M1.265255-.767123L2.321295-1.793275C3.875467-3.16812 4.473225-3.706102 4.473225-4.702366C4.473225-5.838107 3.576588-6.635118 2.361146-6.635118C1.235367-6.635118 .498132-5.718555 .498132-4.83188C.498132-4.273973 .996264-4.273973 1.026152-4.273973C1.195517-4.273973 1.544209-4.393524 1.544209-4.801993C1.544209-5.061021 1.364882-5.32005 1.016189-5.32005C.936488-5.32005 .916563-5.32005 .886675-5.310087C1.115816-5.957659 1.653798-6.326276 2.231631-6.326276C3.138232-6.326276 3.566625-5.519303 3.566625-4.702366C3.566625-3.905355 3.068493-3.118306 2.520548-2.500623L.607721-.368618C.498132-.259029 .498132-.239103 .498132 0H4.194271L4.473225-1.733499H4.224159C4.174346-1.43462 4.104608-.996264 4.004981-.846824C3.935243-.767123 3.277709-.767123 3.058531-.767123H1.265255Z'/>
+</defs>
+<g id='page1'>
+<use x='169.364866' y='0' xlink:href='#g0-50'/>
+</g>
+</svg>
\ No newline at end of file
diff --git a/tests/tests_cache/graph/PlotFunctions/Tex/7399563bee7ad4e5.tex b/tests/tests_cache/graph/PlotFunctions/Tex/7399563bee7ad4e5.tex
new file mode 100644
index 000000000..b638b4c62
--- /dev/null
+++ b/tests/tests_cache/graph/PlotFunctions/Tex/7399563bee7ad4e5.tex
@@ -0,0 +1,10 @@
+\documentclass[preview]{standalone}\usepackage[english]{babel}\usepackage{amsmath}\usepackage{amssymb}\usepackage{dsfont}\usepackage{setspace}\usepackage{tipa}\usepackage{relsize}\usepackage{textcomp}\usepackage{mathrsfs}\usepackage{calligra}\usepackage{wasysym}\usepackage{ragged2e}\usepackage{physics}\usepackage{xcolor}\usepackage{microtype}\linespread{1}
+\DisableLigatures{encoding = *, family = *}
+
+\begin{document}
+
+\begin{align*}
+2
+\end{align*}
+
+\end{document}
\ No newline at end of file
diff --git a/tests/tests_cache/graph/PlotFunctions/Tex/89a469c6726623e3.aux b/tests/tests_cache/graph/PlotFunctions/Tex/89a469c6726623e3.aux
new file mode 100644
index 000000000..64ae5c5e4
--- /dev/null
+++ b/tests/tests_cache/graph/PlotFunctions/Tex/89a469c6726623e3.aux
@@ -0,0 +1,3 @@
+\relax
+\providecommand\babel@aux[2]{}
+\@nameuse{bbl@beforestart}
diff --git a/tests/tests_cache/graph/PlotFunctions/Tex/89a469c6726623e3.dvi b/tests/tests_cache/graph/PlotFunctions/Tex/89a469c6726623e3.dvi
new file mode 100644
index 000000000..38c4ac686
Binary files /dev/null and b/tests/tests_cache/graph/PlotFunctions/Tex/89a469c6726623e3.dvi differ
diff --git a/tests/tests_cache/graph/PlotFunctions/Tex/89a469c6726623e3.svg b/tests/tests_cache/graph/PlotFunctions/Tex/89a469c6726623e3.svg
new file mode 100644
index 000000000..d52f01943
--- /dev/null
+++ b/tests/tests_cache/graph/PlotFunctions/Tex/89a469c6726623e3.svg
@@ -0,0 +1,10 @@
+<?xml version='1.0' encoding='UTF-8'?>
+<!-- This file was generated by dvisvgm 2.8.2 -->
+<svg version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' width='4.981339pt' height='6.420368pt' viewBox='169.364866 -6.420368 4.981339 6.420368'>
+<defs>
+<path id='g0-48' d='M4.582814-3.188045C4.582814-3.985056 4.533001-4.782067 4.184309-5.519303C3.726027-6.475716 2.909091-6.635118 2.49066-6.635118C1.892902-6.635118 1.165629-6.37609 .757161-5.449564C.438356-4.762142 .388543-3.985056 .388543-3.188045C.388543-2.440847 .428394-1.544209 .836862-.787049C1.265255 .019925 1.992528 .219178 2.480697 .219178C3.01868 .219178 3.775841 .009963 4.214197-.936488C4.533001-1.62391 4.582814-2.400996 4.582814-3.188045ZM2.480697 0C2.092154 0 1.504359-.249066 1.325031-1.205479C1.215442-1.803238 1.215442-2.719801 1.215442-3.307597C1.215442-3.945205 1.215442-4.60274 1.295143-5.140722C1.484433-6.326276 2.231631-6.41594 2.480697-6.41594C2.809465-6.41594 3.466999-6.236613 3.656289-5.250311C3.755915-4.692403 3.755915-3.935243 3.755915-3.307597C3.755915-2.560399 3.755915-1.882939 3.646326-1.24533C3.496887-.298879 2.929016 0 2.480697 0Z'/>
+</defs>
+<g id='page1'>
+<use x='169.364866' y='0' xlink:href='#g0-48'/>
+</g>
+</svg>
\ No newline at end of file
diff --git a/tests/tests_cache/graph/PlotFunctions/Tex/89a469c6726623e3.tex b/tests/tests_cache/graph/PlotFunctions/Tex/89a469c6726623e3.tex
new file mode 100644
index 000000000..04ec34a57
--- /dev/null
+++ b/tests/tests_cache/graph/PlotFunctions/Tex/89a469c6726623e3.tex
@@ -0,0 +1,10 @@
+\documentclass[preview]{standalone}\usepackage[english]{babel}\usepackage{amsmath}\usepackage{amssymb}\usepackage{dsfont}\usepackage{setspace}\usepackage{tipa}\usepackage{relsize}\usepackage{textcomp}\usepackage{mathrsfs}\usepackage{calligra}\usepackage{wasysym}\usepackage{ragged2e}\usepackage{physics}\usepackage{xcolor}\usepackage{microtype}\linespread{1}
+\DisableLigatures{encoding = *, family = *}
+
+\begin{document}
+
+\begin{align*}
+0
+\end{align*}
+
+\end{document}
\ No newline at end of file
diff --git a/tests/tests_cache/graph/PlotFunctions/Tex/9f4cc7daf5892d94.aux b/tests/tests_cache/graph/PlotFunctions/Tex/9f4cc7daf5892d94.aux
new file mode 100644
index 000000000..64ae5c5e4
--- /dev/null
+++ b/tests/tests_cache/graph/PlotFunctions/Tex/9f4cc7daf5892d94.aux
@@ -0,0 +1,3 @@
+\relax
+\providecommand\babel@aux[2]{}
+\@nameuse{bbl@beforestart}
diff --git a/tests/tests_cache/graph/PlotFunctions/Tex/9f4cc7daf5892d94.dvi b/tests/tests_cache/graph/PlotFunctions/Tex/9f4cc7daf5892d94.dvi
new file mode 100644
index 000000000..41e6b9aad
Binary files /dev/null and b/tests/tests_cache/graph/PlotFunctions/Tex/9f4cc7daf5892d94.dvi differ
diff --git a/tests/tests_cache/graph/PlotFunctions/Tex/9f4cc7daf5892d94.svg b/tests/tests_cache/graph/PlotFunctions/Tex/9f4cc7daf5892d94.svg
new file mode 100644
index 000000000..e93171b7e
--- /dev/null
+++ b/tests/tests_cache/graph/PlotFunctions/Tex/9f4cc7daf5892d94.svg
@@ -0,0 +1,10 @@
+<?xml version='1.0' encoding='UTF-8'?>
+<!-- This file was generated by dvisvgm 2.8.2 -->
+<svg version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' width='5.693932pt' height='4.289468pt' viewBox='0 -4.289468 5.693932 4.289468'>
+<defs>
+<path id='g0-120' d='M3.327522-3.008717C3.387298-3.267746 3.616438-4.184309 4.313823-4.184309C4.363636-4.184309 4.60274-4.184309 4.811955-4.054795C4.533001-4.004981 4.333748-3.755915 4.333748-3.516812C4.333748-3.35741 4.443337-3.16812 4.712329-3.16812C4.931507-3.16812 5.250311-3.347447 5.250311-3.745953C5.250311-4.26401 4.662516-4.403487 4.323786-4.403487C3.745953-4.403487 3.39726-3.875467 3.277709-3.646326C3.028643-4.303861 2.49066-4.403487 2.201743-4.403487C1.165629-4.403487 .597758-3.118306 .597758-2.86924C.597758-2.769614 .697385-2.769614 .71731-2.769614C.797011-2.769614 .826899-2.789539 .846824-2.879203C1.185554-3.935243 1.843088-4.184309 2.181818-4.184309C2.371108-4.184309 2.719801-4.094645 2.719801-3.516812C2.719801-3.20797 2.550436-2.540473 2.181818-1.145704C2.022416-.52802 1.673724-.109589 1.235367-.109589C1.175592-.109589 .946451-.109589 .737235-.239103C.986301-.288917 1.205479-.498132 1.205479-.777086C1.205479-1.046077 .986301-1.125778 .836862-1.125778C.537983-1.125778 .288917-.86675 .288917-.547945C.288917-.089664 .787049 .109589 1.225405 .109589C1.882939 .109589 2.241594-.587796 2.271482-.647572C2.391034-.278954 2.749689 .109589 3.347447 .109589C4.373599 .109589 4.941469-1.175592 4.941469-1.424658C4.941469-1.524284 4.851806-1.524284 4.821918-1.524284C4.732254-1.524284 4.712329-1.484433 4.692403-1.414695C4.363636-.348692 3.686177-.109589 3.367372-.109589C2.978829-.109589 2.819427-.428394 2.819427-.767123C2.819427-.986301 2.879203-1.205479 2.988792-1.643836L3.327522-3.008717Z'/>
+</defs>
+<g id='page1'>
+<use x='0' y='0' xlink:href='#g0-120'/>
+</g>
+</svg>
\ No newline at end of file
diff --git a/tests/tests_cache/graph/PlotFunctions/Tex/9f4cc7daf5892d94.tex b/tests/tests_cache/graph/PlotFunctions/Tex/9f4cc7daf5892d94.tex
new file mode 100644
index 000000000..5887b3a5f
--- /dev/null
+++ b/tests/tests_cache/graph/PlotFunctions/Tex/9f4cc7daf5892d94.tex
@@ -0,0 +1,8 @@
+\documentclass[preview]{standalone}\usepackage[english]{babel}\usepackage{amsmath}\usepackage{amssymb}\usepackage{dsfont}\usepackage{setspace}\usepackage{tipa}\usepackage{relsize}\usepackage{textcomp}\usepackage{mathrsfs}\usepackage{calligra}\usepackage{wasysym}\usepackage{ragged2e}\usepackage{physics}\usepackage{xcolor}\usepackage{microtype}\linespread{1}
+\DisableLigatures{encoding = *, family = *}
+
+\begin{document}
+
+$x$
+
+\end{document}
\ No newline at end of file
diff --git a/tests/tests_cache/graph/PlotFunctions/Tex/cc5e695bd773416a.aux b/tests/tests_cache/graph/PlotFunctions/Tex/cc5e695bd773416a.aux
new file mode 100644
index 000000000..64ae5c5e4
--- /dev/null
+++ b/tests/tests_cache/graph/PlotFunctions/Tex/cc5e695bd773416a.aux
@@ -0,0 +1,3 @@
+\relax
+\providecommand\babel@aux[2]{}
+\@nameuse{bbl@beforestart}
diff --git a/tests/tests_cache/graph/PlotFunctions/Tex/cc5e695bd773416a.dvi b/tests/tests_cache/graph/PlotFunctions/Tex/cc5e695bd773416a.dvi
new file mode 100644
index 000000000..ba89e8507
Binary files /dev/null and b/tests/tests_cache/graph/PlotFunctions/Tex/cc5e695bd773416a.dvi differ
diff --git a/tests/tests_cache/graph/PlotFunctions/Tex/cc5e695bd773416a.svg b/tests/tests_cache/graph/PlotFunctions/Tex/cc5e695bd773416a.svg
new file mode 100644
index 000000000..0bf687c3e
--- /dev/null
+++ b/tests/tests_cache/graph/PlotFunctions/Tex/cc5e695bd773416a.svg
@@ -0,0 +1,10 @@
+<?xml version='1.0' encoding='UTF-8'?>
+<!-- This file was generated by dvisvgm 2.8.2 -->
+<svg version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' width='5.693932pt' height='4.289468pt' viewBox='169.008582 -4.289468 5.693932 4.289468'>
+<defs>
+<path id='g0-120' d='M3.327522-3.008717C3.387298-3.267746 3.616438-4.184309 4.313823-4.184309C4.363636-4.184309 4.60274-4.184309 4.811955-4.054795C4.533001-4.004981 4.333748-3.755915 4.333748-3.516812C4.333748-3.35741 4.443337-3.16812 4.712329-3.16812C4.931507-3.16812 5.250311-3.347447 5.250311-3.745953C5.250311-4.26401 4.662516-4.403487 4.323786-4.403487C3.745953-4.403487 3.39726-3.875467 3.277709-3.646326C3.028643-4.303861 2.49066-4.403487 2.201743-4.403487C1.165629-4.403487 .597758-3.118306 .597758-2.86924C.597758-2.769614 .697385-2.769614 .71731-2.769614C.797011-2.769614 .826899-2.789539 .846824-2.879203C1.185554-3.935243 1.843088-4.184309 2.181818-4.184309C2.371108-4.184309 2.719801-4.094645 2.719801-3.516812C2.719801-3.20797 2.550436-2.540473 2.181818-1.145704C2.022416-.52802 1.673724-.109589 1.235367-.109589C1.175592-.109589 .946451-.109589 .737235-.239103C.986301-.288917 1.205479-.498132 1.205479-.777086C1.205479-1.046077 .986301-1.125778 .836862-1.125778C.537983-1.125778 .288917-.86675 .288917-.547945C.288917-.089664 .787049 .109589 1.225405 .109589C1.882939 .109589 2.241594-.587796 2.271482-.647572C2.391034-.278954 2.749689 .109589 3.347447 .109589C4.373599 .109589 4.941469-1.175592 4.941469-1.424658C4.941469-1.524284 4.851806-1.524284 4.821918-1.524284C4.732254-1.524284 4.712329-1.484433 4.692403-1.414695C4.363636-.348692 3.686177-.109589 3.367372-.109589C2.978829-.109589 2.819427-.428394 2.819427-.767123C2.819427-.986301 2.879203-1.205479 2.988792-1.643836L3.327522-3.008717Z'/>
+</defs>
+<g id='page1'>
+<use x='169.008582' y='0' xlink:href='#g0-120'/>
+</g>
+</svg>
\ No newline at end of file
diff --git a/tests/tests_cache/graph/PlotFunctions/Tex/cc5e695bd773416a.tex b/tests/tests_cache/graph/PlotFunctions/Tex/cc5e695bd773416a.tex
new file mode 100644
index 000000000..1803ea0d9
--- /dev/null
+++ b/tests/tests_cache/graph/PlotFunctions/Tex/cc5e695bd773416a.tex
@@ -0,0 +1,8 @@
+\documentclass[preview]{standalone}\usepackage[english]{babel}\usepackage{amsmath}\usepackage{amssymb}\usepackage{dsfont}\usepackage{setspace}\usepackage{tipa}\usepackage{relsize}\usepackage{textcomp}\usepackage{mathrsfs}\usepackage{calligra}\usepackage{wasysym}\usepackage{ragged2e}\usepackage{physics}\usepackage{xcolor}\usepackage{microtype}\linespread{1}
+\DisableLigatures{encoding = *, family = *}
+
+\begin{document}
+
+\centering $x$
+
+\end{document}
\ No newline at end of file
diff --git a/tests/tests_cache/graph/PlotFunctions/Tex/e4a76237723951d2.aux b/tests/tests_cache/graph/PlotFunctions/Tex/e4a76237723951d2.aux
new file mode 100644
index 000000000..64ae5c5e4
--- /dev/null
+++ b/tests/tests_cache/graph/PlotFunctions/Tex/e4a76237723951d2.aux
@@ -0,0 +1,3 @@
+\relax
+\providecommand\babel@aux[2]{}
+\@nameuse{bbl@beforestart}
diff --git a/tests/tests_cache/graph/PlotFunctions/Tex/e4a76237723951d2.dvi b/tests/tests_cache/graph/PlotFunctions/Tex/e4a76237723951d2.dvi
new file mode 100644
index 000000000..36fb2af78
Binary files /dev/null and b/tests/tests_cache/graph/PlotFunctions/Tex/e4a76237723951d2.dvi differ
diff --git a/tests/tests_cache/graph/PlotFunctions/Tex/e4a76237723951d2.svg b/tests/tests_cache/graph/PlotFunctions/Tex/e4a76237723951d2.svg
new file mode 100644
index 000000000..c4e01206a
--- /dev/null
+++ b/tests/tests_cache/graph/PlotFunctions/Tex/e4a76237723951d2.svg
@@ -0,0 +1,10 @@
+<?xml version='1.0' encoding='UTF-8'?>
+<!-- This file was generated by dvisvgm 2.8.2 -->
+<svg version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' width='4.981339pt' height='6.420368pt' viewBox='169.364866 -6.420368 4.981339 6.420368'>
+<defs>
+<path id='g0-56' d='M1.62391-4.552927C1.165629-4.851806 1.125778-5.190535 1.125778-5.3599C1.125778-5.967621 1.77335-6.386052 2.480697-6.386052C3.20797-6.386052 3.845579-5.867995 3.845579-5.150685C3.845579-4.582814 3.457036-4.104608 2.859278-3.755915L1.62391-4.552927ZM3.078456-3.606476C3.795766-3.975093 4.283935-4.493151 4.283935-5.150685C4.283935-6.067248 3.39726-6.635118 2.49066-6.635118C1.494396-6.635118 .687422-5.897883 .687422-4.971357C.687422-4.79203 .707347-4.343711 1.125778-3.875467C1.235367-3.755915 1.603985-3.506849 1.853051-3.337484C1.275218-3.048568 .418431-2.49066 .418431-1.504359C.418431-.448319 1.43462 .219178 2.480697 .219178C3.606476 .219178 4.552927-.607721 4.552927-1.673724C4.552927-2.032379 4.443337-2.480697 4.064757-2.899128C3.875467-3.108344 3.716065-3.20797 3.078456-3.606476ZM2.082192-3.188045L3.307597-2.410959C3.58655-2.221669 4.054795-1.92279 4.054795-1.315068C4.054795-.577833 3.307597-.059776 2.49066-.059776C1.633873-.059776 .916563-.67746 .916563-1.504359C.916563-2.082192 1.235367-2.719801 2.082192-3.188045Z'/>
+</defs>
+<g id='page1'>
+<use x='169.364866' y='0' xlink:href='#g0-56'/>
+</g>
+</svg>
\ No newline at end of file
diff --git a/tests/tests_cache/graph/PlotFunctions/Tex/e4a76237723951d2.tex b/tests/tests_cache/graph/PlotFunctions/Tex/e4a76237723951d2.tex
new file mode 100644
index 000000000..30f7389e1
--- /dev/null
+++ b/tests/tests_cache/graph/PlotFunctions/Tex/e4a76237723951d2.tex
@@ -0,0 +1,10 @@
+\documentclass[preview]{standalone}\usepackage[english]{babel}\usepackage{amsmath}\usepackage{amssymb}\usepackage{dsfont}\usepackage{setspace}\usepackage{tipa}\usepackage{relsize}\usepackage{textcomp}\usepackage{mathrsfs}\usepackage{calligra}\usepackage{wasysym}\usepackage{ragged2e}\usepackage{physics}\usepackage{xcolor}\usepackage{microtype}\linespread{1}
+\DisableLigatures{encoding = *, family = *}
+
+\begin{document}
+
+\begin{align*}
+8
+\end{align*}
+
+\end{document}
\ No newline at end of file
diff --git a/tests/tests_cache/writing/TextTest/Text/space.svg b/tests/tests_cache/writing/TextTest/Text/space.svg
index 6c4b2d0dd..4de22d4ed 100644
--- a/tests/tests_cache/writing/TextTest/Text/space.svg
+++ b/tests/tests_cache/writing/TextTest/Text/space.svg
@@ -10,7 +10,7 @@
</symbol>
</g>
</defs>
-<g id="surface87">
+<g id="surface72">
<g style="fill:rgb(0%,0%,0%);fill-opacity:1;">
<use xlink:href="#glyph0-1" x="30" y="20"/>
</g>
diff --git a/tests/tests_data/graph/PlotFunctions.npy b/tests/tests_data/graph/PlotFunctions.npy
new file mode 100644
index 000000000..9b1079088
Binary files /dev/null and b/tests/tests_data/graph/PlotFunctions.npy differ