Problem with tikzpicture

Nicola shared this question 1 year ago
Answered

Hello

I'm trying to export a picture in my latex document through tikzpicture but I obtain the error message "Dimension too large".

I already had this problem in the past and usually I solved it changing x=1cm,y=1cm with smaller values. I don't understand why this time it does not work. I always have the same error message.

Thanks for your help.

N

\documentclass[10pt]{article}


\usepackage{pgf,tikz,pgfplots}


\pgfplotsset{compat=1.15}


\usepackage{mathrsfs}


\usetikzlibrary{arrows}


\pagestyle{empty}


\begin{document}


\definecolor{xdxdff}{rgb}{0.49019607843137253,0.49019607843137253,1}


\definecolor{uuuuuu}{rgb}{0.26666666666666666,0.26666666666666666,0.26666666666666666}


\definecolor{ffqqqq}{rgb}{1,0,0}


\begin{tikzpicture}[line cap=round,line join=round,>=triangle 45,x=1cm,y=1cm]


\begin{axis}[


x=1cm,y=1cm,


axis lines=middle,


ymajorgrids=true,


xmajorgrids=true,


xmin=-2.229158450573085,


xmax=34.68436388023197,


ymin=-604.1284329754328,


ymax=7183.922496802703,


xtick={-2,0,...,34},


ytick={-500,0,...,7000},]


\clip(-2.229158450573085,-604.1284329754328) rectangle (34.68436388023197,7183.922496802703);


\draw [samples=50,rotate around={-180:(25,6250)},xshift=25cm,yshift=6250cm,line width=2pt,domain=-37.1:37.1)] plot (\x,{(\x)^2/2/0.05});


\draw [line width=2pt,color=ffqqqq,domain=-2.229158450573085:34.68436388023197] plot(\x,{(--1000--300*\x)/1});


\draw [line width=2pt,domain=-2.229158450573085:34.68436388023197] plot(\x,{(--59999.99999999999--2000.0000000000005*\x)/20});


\draw [line width=2pt,domain=-2.229158450573085:34.68436388023197] plot(\x,{(--19999.999999999993--2000.0000000000005*\x)/10});


\draw [line width=2pt,domain=-2.229158450573085:34.68436388023197] plot(\x,{(--7517.321929671627--1251.7306940188778*\x)/5.008657217465101});


\begin{scriptsize}


\draw[color=black] (164.94412942775827,6333.744430344443) node {$f$};


\draw[color=ffqqqq] (20.427936581119173,7152.434420267211) node {$g$};


\draw [fill=uuuuuu] (10,3999.9999999999995) circle (2pt);


\draw[color=uuuuuu] (9.828270530305675,4136.576423201285) node {$A$};


\draw [fill=xdxdff] (30,6000) circle (2.5pt);


\draw[color=xdxdff] (30.187535858674728,6151.813321472716) node {$B$};


\draw [fill=xdxdff] (20,6000) circle (2.5pt);


\draw[color=xdxdff] (20.0079031944902,6151.813321472716) node {$C$};


\draw [fill=xdxdff] (15.0086572174651,5251.730694018877) circle (2.5pt);


\draw[color=xdxdff] (14.992210401214816,5403.09683496215) node {$D$};


\draw[color=black] (-2.0067878341224525,7152.434420267211) node {$h$};


\draw[color=black] (-2.0067878341224525,7152.434420267211) node {$i$};


\draw[color=black] (22.577519206808624,7152.434420267211) node {$j$};


\end{scriptsize}


\end{axis}


\end{tikzpicture}


\end{document}

Comments (1)

photo
1

It seems to be a TikZ problem (due to the large y-coordinates)

© 2021 International GeoGebra Institute