Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

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

share|improve this question
add comment

1 Answer 1

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

share|improve this answer
    
I'm not sure if I'm allowed to used a different package but I will see –  hockeynl Feb 6 at 1:54
    
@hockeynl do you know if there's some documentation for 2130.sty? I don't feel like going through the code. –  Gonzalo Medina Feb 6 at 1:58
    
I do not think so –  hockeynl Feb 6 at 23:41
    
@hockeynl and are you allowed to use pgfplots? –  Gonzalo Medina Feb 7 at 2:18
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.