Hi Christian,

Thanks, that works indeed! I should have tried a little bit harder, I
suppose.

Regarding this huge number of points, it is actually needed: my data
consists in thousands of lines of various amplitude, and I want to be able
to distinguish one of these lines from its neighbour as well as comprehend
the global variation in amplitude. However, you're right that it may be a
pain for the user, and I will consider using an image instead. Actually,
that was my workaround, but I was not satisfied with this.

So thanks for your help and comments.

Best regards,

Aurélien


2012/11/30 Christian Feuersaenger <cfeuersaen...@googlemail.com>

> Hi Aurélien,
>
> that is very strange, indeed. I can reproduce the problem with a file
> named "Sinus" (without extension): lualatex fails whereas pdflatex works.
>
> Seems as if they have different path resolution algorithms.
>
> However, it worked as soon as I introduced a file suffix: both lualatex
> and pdflatex find "Sinus.dat" .
>
> My suggestion is to go along that path.
>
> However, I would like to point out that 78000 points might be
> essentially overkill - and I am not talking about the time that pgfplots
> takes (be it lualatex or pdflatex). If you have 78000 points, you blow
> up the size of your .pdf file. In addition, displaying it will take some
> time. And: the user might not benefit at all unless you really have high
> frequencies! Are you sure that you need such a sampling density? Often,
> it is completely sufficient to have less samples for a .pdf document.
> Note that if you generate some .png graphics containing JUST the plot,
> you could use pgfplots to overlay an axis by means of its \addplot
> graphics feature. That would have a smaller pdf.
>
> Best regards
>
> Christian
>
> Am 30.11.2012 19:19, schrieb aurelien coillet:
> > Hi,
> >
> > I'd like to plot a large file (78000 points) with pgfplots, and it
> > obviously fails with pdflatex. I tried to use lualatex instead, but it
> > does not seem to find my file...
> > So I tried a very simple example :
> >
> > \documentclass{article}
> > \usepackage[utf8]{luainputenc}
> > \usepackage{pgfplots}
> > \pgfplotsset{compat=1.7}
> >
> > \begin{document}
> >
> > \begin{tikzpicture}
> >   \begin{axis}
> >     \addplot file {Sinus};
> >   \end{axis}
> > \end{tikzpicture}
> >
> > \end{document}
> >
> > with the Sinus file (a small one, 100 points) starting with:
> >
> >  0.00000000e+00 0.00000000e+00
> >  2.02020202e-02 2.02006461e-02
> >  4.04040404e-02 4.03930481e-02
> >  6.06060606e-02 6.05689655e-02
> >  8.08080808e-02 8.07201641e-02
> >  1.01010101e-01 1.00838420e-01
> >
> > and it fails with:
> >
> > ! Package pgfplots Error: sorry, plot file{Sinus} could not be opened.
> >
> > Note that compiling this document with pdflatex works as intended.
> > What am I doing wrong? I searched on google, but couldn't find
> > anything...
> >
> > Thanks for your help! Regards,
> >
> >
> > --
> > Aurélien Coillet
> >
> >
> >
> ------------------------------------------------------------------------------
> > Keep yourself connected to Go Parallel:
> > TUNE You got it built. Now make it sing. Tune shows you how.
> > http://goparallel.sourceforge.net
> >
> >
> > _______________________________________________
> > Pgfplots-features mailing list
> > Pgfplots-features@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/pgfplots-features
>
>
>
> ------------------------------------------------------------------------------
> Keep yourself connected to Go Parallel:
> TUNE You got it built. Now make it sing. Tune shows you how.
> http://goparallel.sourceforge.net
> _______________________________________________
> Pgfplots-features mailing list
> Pgfplots-features@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/pgfplots-features
>



-- 
Aurélien Coillet
------------------------------------------------------------------------------
Keep yourself connected to Go Parallel: 
TUNE You got it built. Now make it sing. Tune shows you how.
http://goparallel.sourceforge.net
_______________________________________________
Pgfplots-features mailing list
Pgfplots-features@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pgfplots-features

Reply via email to