Open amir000251 opened 10 months ago
Hello, I am developing a website with Django loading the js code for tikzjax to display maths and lines, etc. However, I have not been able to use the package for plots etc.
I can successfully load
\begin{document} \begin{tikzpicture}[domain=0:4] \draw[very thin,color=gray] (-0.1,-1.1) grid (3.9,3.9); \draw[->] (-0.2,0) -- (4.2,0) node[right] {$x$}; \draw[->] (0,-1.2) -- (0,4.2) node[above] {$f(x)$}; \draw[color=red] plot (\x,\x) node[right] {$f(x) =x$}; \draw[color=blue] plot (\x,{sin(\x r)}) node[right] {$f(x) = \sin x$}; \draw[color=orange] plot (\x,{0.05*exp(\x)}) node[right] {$f(x) = \frac{1}{20} \mathrm e^x$}; \end{tikzpicture} \end{document}
but I cannot load
\usepackage{pgfplots} \pgfplotsset{compat=1.16} \begin{document} \begin{tikzpicture} \begin{axis}[colormap/viridis] \addplot3[ surf, samples=18, domain=-3:3 ] {exp(-x^2-y^2)*x}; \end{axis} \end{tikzpicture} \end{document}
I was wondering if there is a separate js file that needs to be called on html files for pgfplots?
Hello, I am developing a website with Django loading the js code for tikzjax to display maths and lines, etc. However, I have not been able to use the package for plots etc.
I can successfully load
but I cannot load
I was wondering if there is a separate js file that needs to be called on html files for pgfplots?