pgf-tikz / pgfplots

pgfplots - A TeX package to draw normal and/or logarithmic plots directly in TeX in two and three dimensions with a user-friendly interface and pgfplotstable - a TeX package to round and format numerical tables. Examples in manuals and/or on web site.
http://pgfplots.sourceforge.net/
187 stars 33 forks source link

plotdata folder missing on CTAN #373

Open TorbjornT opened 3 years ago

TorbjornT commented 3 years ago

The plotdata folder should, according to the manual be included in the doc tree. For example on page 30 of the manual it says

Note that the data file (and all others referenced in this manual) are shipped with pgfplots; you can find them in the subfolder doc/latex/pgfplots/plotdata.

However, the folder is, as far as I can see, missing on CTAN, and hence in TeX Live etc. Do you know if something wrong happened on the latest upload to CTAN so the folder was excluded, or is the manual not up to date?

muzimuzhi commented 3 years ago

Possible fix:

diff --git a/scripts/pgfplots/Makefile.pgfplots_release_sourceforge b/scripts/pgfplots/Makefile.pgfplots_release_sourceforge
index e2a3f940..52fd8ebb 100644
--- a/scripts/pgfplots/Makefile.pgfplots_release_sourceforge
+++ b/scripts/pgfplots/Makefile.pgfplots_release_sourceforge
@@ -112,7 +112,7 @@ $(ZIP): FORCE
                -r $(DIR) /tmp
        make -C /tmp/$(DIR)/doc/latex/pgfplots/gallery/ clean
        rm -fr /tmp/$(DIR)/doc/latex/pgfplots/figures/generated
-       cd /tmp/$(DIR)/doc/latex/pgfplots && ls pgfplotsexample* *.pdf > /tmp/exclude.lst
+       cd /tmp/$(DIR)/doc/latex/pgfplots && ls pgfplotsexample.* *.pdf plotdata > /tmp/exclude.lst && echo plotdata >> /tmp/exclude.lst
        cd /tmp/$(DIR)/doc/latex/pgfplots && tar cjf /tmp/pgfplots.doc.src.tar.bz2 --exclude-from /tmp/exclude.lst --remove-files *
        mv /tmp/pgfplots.doc.src.tar.bz2 /tmp/$(DIR)/doc/latex/pgfplots
        rm /tmp/exclude.lst

The relevant lines were last modified by https://github.com/pgf-tikz/pgfplots/commit/d4a5250105813f60388b2c2084fa27823e6e276f, in 2013.

For a workaround, either copy the whole directory plotdata from git repo, or decompress it from local file $TEXMFDIST/doc/latex/pgfplots/pgfplots.doc.src.tar.bz2.