Closed amontoison closed 3 years ago
When I save the following figure
plot(x, y, line=:dash) savefig("fig.tex")
the curve is dashed in the .tikz file but for this figure
dashed
plot(x, y, line=:dot) savefig("fig.tex")
the curve is solid instead of dotted.
solid
dotted
You can reproduce the problem with the code:
using Plots; pgfplots() using LaTeXStrings plot(x1, y1, label="curve1" , yaxis=:log10, lw=1, color=1, line=:dash) plot!(x2, y2, label="curve2", yaxis=:log10, lw=1, color=3, line=:dot) plot!(x3, y3, label="curve3" , yaxis=:log10, lw=1, color=2, xlabel=L"k", ylabel=L"\|r_k\|", legend=:best) savefig("fig.tex")
I found the culprit :
sed -i 's/dotted,mark = none/solid,mark = none/g'
The problem is not coming from PGFPlots.jl. I close the issue.
PGFPlots.jl
When I save the following figure
the curve is
dashed
in the .tikz file but for this figurethe curve is
solid
instead ofdotted
.You can reproduce the problem with the code: