-
Notifications
You must be signed in to change notification settings - Fork 36
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Does not work with --output-directory
with either contour gnuplot
or contour lua
.
#464
Comments
Works find here, with latest TeX Live 2023 and gnuplot 5.4.8.
These were thrown by gnuplot, thus not the fault of LaTeX, including pgfplots package. I find a similar ticket in gnuplot's bug tracker (https://sourceforge.net/p/gnuplot/bugs/2193/), which was solved by setting a utf8 locale. |
--output-directory
.contour gnuplot
does not work with --output-directory
.
What is the actual version of lualatex? I can reproduce this reliably without gnuplot:
|
contour gnuplot
does not work with --output-directory
.--output-directory
with either contour gnuplot
or contour lua
.
The same as yours,
With |
This fixes the case using diff --git a/tex/generic/pgfplots/libs/tikzlibrarypgfplots.contourlua.code.tex b/tex/generic/pgfplots/libs/tikzlibrarypgfplots.contourlua.code.tex
index f782101..7b3d9a1 100644
--- a/tex/generic/pgfplots/libs/tikzlibrarypgfplots.contourlua.code.tex
+++ b/tex/generic/pgfplots/libs/tikzlibrarypgfplots.contourlua.code.tex
@@ -50,7 +50,7 @@
end;
yvaries = \if 0\ordering 'x'\else 'y'\fi;
yvaries = (yvaries == 'y');
- infile = io.open(\"\infile\", \"r\");
+ infile = io.open(kpse.find_file(\"\infile\"), \"r\");
outfile = io.open(\"\outfile\", \"w\");
mesh = PrepcMesh.new(yvaries, nblocks, nlines, copylines, infile, outfile);
\ifpgfplotsplothandlercontour@corners |
@lockywolf Can you reproduce the original problem (using Example excerpted from pgfmanual sec. 22.6
\documentclass{article}
\usepackage{tikz}
\begin{document}
\begin{tikzpicture}[domain=0:4]
\draw[very thin,color=gray] (-0.1,-1.1) grid (3.9,3.9);
\draw[->] (-0.2,0) -- (4.2,0) node[right] {$x$};
\draw[->] (0,-1.2) -- (0,4.2) node[above] {$f(x)$};
\draw[color=red] plot[id=x] function{x} node[right] {$f(x) =x$};
\draw[color=blue] plot[id=sin] function{sin(x)} node[right] {$f(x) = \sin x$};
\draw[color=orange] plot[id=exp] function{0.05*exp(x)} node[right] {$f(x) = \frac{1}{20} \mathrm e^x$};
\end{tikzpicture}
\end{document} Update:
Also the |
Your patch does not affect my setup, seemingly.
The answer to the second question is also negative
I will test with the latest gnuplot. |
gnuplot is printing this warning when just launched.
|
|
I know why I can't reproduce it before: there existed It seems the call to |
I suspect that the lua issue is the same issue then. The SO question seems to give a working solution to this issue, given that the value of |
MWE
Compile with
broken with the following error:
Compile with:
works.
It seems to be working with more low-level TikZ plots. I.e., the following works:
This can be worked aroun, sort of, by setting:
But this is very-very slow, and requires a hardcoded
prefix=<...>
in the file.The text was updated successfully, but these errors were encountered: