|
View:
New views
5 Messages
—
Rating Filter:
Alert me
|
|
|
Dimension too large when PlottingI'm new to PGF/Tikz so please forgive my ignorance.
I'm trying to plot some data that I generated using gnuplot. When I run pdflatex I get a "! Dimension too large." error. I found a posting where someone else had this problem because one data point was 17,000. My largest data point is 1007. What am I doing wrong? --8<---------------cut here---------------start------------->8--- \documentclass{article} \usepackage{tikz} \begin{document} \begin{tikzpicture} \draw plot[mark=*] file {r.data}; \end{tikzpicture} \end{document} --8<---------------cut here---------------end--------------->8--- --8<---------------cut here---------------start------------->8--- #Curve 0 of 1, 25 points #x y type 0 76 i 41.9583 17.3261 i 83.9167 74.6317 i 125.875 92.7898 i 167.833 85.5883 i 209.792 84.2185 i 251.75 87.0037 i 293.708 110.165 i 335.667 34.1035 i 377.625 38.4525 i 419.583 79.0586 i 461.542 82.8816 i 503.5 86.3076 i 545.458 17.3935 i 587.417 17.75 i 629.375 100.39 i 671.333 64.2016 i 713.292 87.7385 i 755.25 10.6993 i 797.208 66.739 i 839.167 57.2051 i 881.125 56.5284 i 923.083 105.99 i 965.042 87.2071 i 1007 96 i --8<---------------cut here---------------end--------------->8--- -- Peter Jones - 303-219-0226 pmade inc. - http://pmade.com ------------------------------------------------------------------------------ Come build with us! The BlackBerry® Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9-12, 2009. Register now! http://p.sf.net/sfu/devconf _______________________________________________ pgf-users mailing list pgf-users@... https://lists.sourceforge.net/lists/listinfo/pgf-users |
|
|
Re: Dimension too large when PlottingHi Peter,
the dimensions are much too large (approx. 1000 for x). Look at the highest x and y coordinates. This can be easily fixed by scaling options, e.g. with using \tikzpicture[scale=0.01] or scaling x and y separately. Cheers, Daniel > I'm new to PGF/Tikz so please forgive my ignorance. > > I'm trying to plot some data that I generated using gnuplot. When I run > pdflatex I get a "! Dimension too large." error. I found a posting > where someone else had this problem because one data point was 17,000. > My largest data point is 1007. > > What am I doing wrong? > > --8<---------------cut here---------------start------------->8--- > \documentclass{article} > \usepackage{tikz} > > \begin{document} > \begin{tikzpicture} > > \draw plot[mark=*] file {r.data}; > > \end{tikzpicture} > \end{document} > --8<---------------cut here---------------end--------------->8--- > > --8<---------------cut here---------------start------------->8--- > > #Curve 0 of 1, 25 points > #x y type > 0 76 i > 41.9583 17.3261 i > 83.9167 74.6317 i > 125.875 92.7898 i > 167.833 85.5883 i > 209.792 84.2185 i > 251.75 87.0037 i > 293.708 110.165 i > 335.667 34.1035 i > 377.625 38.4525 i > 419.583 79.0586 i > 461.542 82.8816 i > 503.5 86.3076 i > 545.458 17.3935 i > 587.417 17.75 i > 629.375 100.39 i > 671.333 64.2016 i > 713.292 87.7385 i > 755.25 10.6993 i > 797.208 66.739 i > 839.167 57.2051 i > 881.125 56.5284 i > 923.083 105.99 i > 965.042 87.2071 i > 1007 96 i > > --8<---------------cut here---------------end--------------->8--- > > > ------------------------------------------------------------------------------ Come build with us! The BlackBerry® Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9-12, 2009. Register now! http://p.sf.net/sfu/devconf _______________________________________________ pgf-users mailing list pgf-users@... https://lists.sourceforge.net/lists/listinfo/pgf-users |
|
|
Re: Dimension too large when PlottingDaniel Glaser <lists@...> writes:
> the dimensions are much too large (approx. 1000 for x). Look at the > highest x and y coordinates. This can be easily fixed by scaling > options, e.g. with using \tikzpicture[scale=0.01] or scaling x and y > separately. Thank you, that worked perfectly. Now I just need to figure out how to suppress the line that connects the data points so it looks more like a scatter chart. -- Peter Jones - 303-219-0226 pmade inc. - http://pmade.com ------------------------------------------------------------------------------ Come build with us! The BlackBerry® Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9-12, 2009. Register now! http://p.sf.net/sfu/devconf _______________________________________________ pgf-users mailing list pgf-users@... https://lists.sourceforge.net/lists/listinfo/pgf-users |
|
|
Re: Dimension too large when PlottingPeter Jones a écrit :
> Daniel Glaser <lists@...> writes: > >> the dimensions are much too large (approx. 1000 for x). Look at the >> highest x and y coordinates. This can be easily fixed by scaling >> options, e.g. with using \tikzpicture[scale=0.01] or scaling x and y >> separately. >> > > Thank you, that worked perfectly. Now I just need to figure out how to > suppress the line that connects the data points so it looks more like a > scatter chart. > > http://www.ctan.org/tex-archive/help/Catalogue/entries/pgfplots.html Sebastian ------------------------------------------------------------------------------ Come build with us! The BlackBerry® Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9-12, 2009. Register now! http://p.sf.net/sfu/devconf _______________________________________________ pgf-users mailing list pgf-users@... https://lists.sourceforge.net/lists/listinfo/pgf-users |
|
|
Re: Dimension too large when PlottingPeter Jones <mlists@...> writes:
> Thank you, that worked perfectly. Now I just need to figure out how to > suppress the line that connects the data points so it looks more like a > scatter chart. Got it: plot[mark=*,only marks] I love documentation. Thanks for all the help. -- Peter Jones - 303-219-0226 pmade inc. - http://pmade.com ------------------------------------------------------------------------------ Come build with us! The BlackBerry® Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9-12, 2009. Register now! http://p.sf.net/sfu/devconf _______________________________________________ pgf-users mailing list pgf-users@... https://lists.sourceforge.net/lists/listinfo/pgf-users |
| Free embeddable forum powered by Nabble | Forum Help |