3

I'm extremely new to LaTeX and this is my first post on this site. I have a major presentation coming in a couple weeks, and I'm in great need of your help.

I export Geogebra code for my graphs, it's much easier for me as an amateur. Well, it's too big for the frame. I've tried everything I can find on this site, and nothing seems to work.

Here's my code for the frame:

\begin{frame}
    \frametitle{Why do we care about the area under the curve?} 
    \definecolor{cqcqcq}{rgb}{0.75,0.75,0.75}
    \begin{tikzpicture}[line cap=round,line join=round,>=triangle 45,x=1.0cm,y=1.0cm]
        \draw [color=cqcqcq,dash pattern=on 320pt off 320pt, xstep=0.5cm,ystep=200.0cm] (-0.82,-100) grid (2.18,1100);
        \draw[->,color=black] (-0.82,0) -- (2.18,0);
        \foreach \x in {-0.5,0.5,1,1.5,2}
        \draw[shift={(\x,0)},color=black] (0pt,2pt) -- (0pt,-2pt) node[below] {\footnotesize $\x$};
        \draw[->,color=black] (0,-100) -- (0,1100);
        \foreach \y in {,200,400,600,800,1000}
        \draw[shift={(0,\y)},color=black] (2pt,0pt) -- (-2pt,0pt) node[left] {\footnotesize $\y$};
        \draw[color=black] (0pt,-10pt) node[right] {\footnotesize $0$};
        \clip(-0.82,-100) rectangle (2.18,1100);
        \draw[line width=1.2pt, smooth,samples=100,domain=0.0:2.181034482758621] plot(\x,{915});
        \draw (0.06,1066.88) node[anchor=north west] {Figher Jets at supersonic speed starts at 915 miles per hour.};
    \end{tikzpicture}
\end{frame}

closed as off-topic by Joseph Wright Aug 11 '13 at 11:13

  • This question does not fall within the scope of TeX, LaTeX or related typesetting systems as defined in the help center.
If this question can be reworded to fit the rules in the help center, please edit the question.

  • 4
    Welcome to TeX.sx! Have you looked at the scale key for a tikzpicture, i.e. in your case using something like scale=.8 in the {} begind the \begin{tikzpicture} ? – Ronny Mar 30 '13 at 20:45
  • Yes, I've tried that from looking at another post, and for some reason it still won't work? Maybe I'm typing it wrong? – rjalli Mar 30 '13 at 20:48
  • 2
    I don't know, whether you typed it wrong, I didn't ;) Anyways, maybe this might also help: Scaling a tikzpicture for a Beamer slide – Ronny Mar 30 '13 at 20:51
  • If I turn your code into a minimal working example (MWE) and added the arrows library, I still get Dimension too large errors which means that the TikZ picture not only fits on a beamer frame but also not on any paper size producible with TeX. The last \draw alone is over 10 metres out. Using x=3cm,y=.005cm brings back the picture in a way one can actually read the content. You should use the pgfplots package if you deal with a) such big numbers and b) plots. – Qrrbrbirlbel Mar 30 '13 at 21:01
  • This question appears to be off-topic because the OP reports it's fixed, and it looks likely this is a 'trivial' fix. – Joseph Wright Aug 11 '13 at 11:13

Browse other questions tagged or ask your own question.