[Tex/LaTex] LaTeX Stretching the x-axis of the graph

diagramsgraphs

I asked this question on Reddit and they told me to come here. I'm wondering if there is a way to stretch my graph, because it is narrow horizontally.

Here is a picture:

enter image description here

\documentclass{article}
\usepackage{2130}
\begin{document}
    \begin{figure}[h]
        \begin{scaledpicture}{10}(4,16)(-2,-7)
            \xaxis \yaxis \xnums{1} \ynums{2}
            \ticks{1} [-0.1] \thicklines
            \input{graph1}
        \end{scaledpicture}
        \caption {The graph $f(x) = x^3+3$}
    \end{figure}
\end{document}

The 2130.sty package: https://gist.github.com/anonymous/4b9d6f43cf1daf727334

Any help will be appreciated

Best Answer

If using another package is an option, I'd suggest you to use pgfplots to do your graphs:

\documentclass{article}
\usepackage{pgfplots}

\pgfplotsset{
compat=newest,
every axis plot/.append style={no marks,thick},
every axis/.style={
  axis lines=middle,
  width=5cm,
  height=7cm,
  }
}

\begin{document}

\begin{figure}
\centering
\begin{tikzpicture}
  \begin{axis}
  \addplot+[domain=-2:2] {(x*x*x)+3};
  \end{axis}
\end{tikzpicture}
\caption{the graph of $f(x)=x^{3}+3$}
\end{figure}

\end{document}

enter image description here

Related Question