#Plotting a graph using the texit bot ?

1 messages · Page 1 of 1 (latest)

chrome quest
#

Hello, I’m using the texit bit and find it very useful when communicating with friends about math. However, I don’t seem to be able to find a way to plot graphic with it (2d or 3d). Is there any way to do that ? If yes what syntax should I use ?

livid hemlock
#

you could use wolfram alpha to plot it

#

,w plot y=x^2

chrome quest
#

Oh wow

#

Didn’t knew you could do that

#

But would it be possible to insert as an image in a longer paper

#

For instance I wrote this

proven coveBOT
#

Saskcwatch

livid hemlock
#

there exist latex packages for plotting graphs yes

#

,ctan pgfplots

proven coveBOT
#

PGFPlots draws high-quality function plots in normal or logarithmic scaling with a user-friendly interface directly in TeX. The user supplies axis labels, legend entries and the plot coordinates for one or more plots and PGFPlots applies axis scaling, computes any logarithms and axis ticks and draws the plots, supporting line plots, scatter plots, piecewise constant plots, bar plots, area plots, mesh-- and surface plots and some more. Pgfplots is based on PGF/TikZ (PGF); it runs equally for LaTeX/TeX/ConTeXt.
​ ​ ​ ​ ​ ​ Sources: /graphics/pgf/contrib/pgfplots
Documentation: README, Package manual
​ ​ ​ ​ Home page: http://pgfplots.sourceforge.net/
​ ​ ​ ​ ​ ​ Support: https://tug.org/mailman/listinfo/pgf-tikz
​ ​ Bug tracker: https://github.com/pgf-tikz/pgfplots/issues
​ ​ ​ Repository: https://github.com/pgf-tikz/pgfplots
​ ​ ​ ​ ​ ​ Version: 1.18.1 2021-05-17
​ Contained in: TeX Live as pgfplots, MiKTeX as pgfplots
Read more at CTAN page of the package.

livid hemlock
chrome quest
#

Ok nice

livid hemlock
#
(tikz)

\begin{tikzpicture}
\begin{axis}
\addplot{x^2};
\end{axis}
\end{tikzpicture}
proven coveBOT
#

Saskcwatch
Compile Error! Click the errors reaction for more information.
(You may edit your message to recompile.)

livid hemlock
#

i dont remember all the options

#

you need to load the package in your preamble

chrome quest
#

Ok

livid hemlock
#

,preamble --add \usepackage{pgfplots}

chrome quest
#

Ok thanks

#

(tickz)

\begin{tickzpicture}
\begin{axis}
\addplot{x};
\end{axis}
\end{tickzpicture}

proven coveBOT
#

Saskcwatch
Compile Error! Click the errors reaction for more information.
(You may edit your message to recompile.)

chrome quest
#

Hmmmm

#

@still lotus

#
(tikz)

\begin{tikzpicture}
\begin{axis}
\addplot{x^2};
\end{axis}
\end{tikzpicture}
proven coveBOT
#

Saskcwatch
Compile Error! Click the errors reaction for more information.
(You may edit your message to recompile.)

livid hemlock
#

your request was rejected because it was faulty. you shouldve gotten a message from @proven cove about it, trying fixing it and resubmitting

ivory laurel
#

is pgfplots better than tikz?