Skip to content
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

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

Closed
amontoison opened this issue Jan 28, 2021 · 1 comment
Closed

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

amontoison opened this issue Jan 28, 2021 · 1 comment

Comments

@amontoison
Copy link

amontoison commented Jan 28, 2021

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
Copy link
Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant