JuliaTeX / PGFPlots.jl

This library uses the LaTeX package pgfplots to produce plots.
Other
188 stars 36 forks source link

Option line=:dot is is not taken into account #163

Closed amontoison closed 3 years ago

amontoison commented 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

plot(x, y, line=:dot)
savefig("fig.tex")

the curve is solid instead of 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")
amontoison commented 3 years ago

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.