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

[BUG] Setting plot marker shape to :auto repeats the cross (+) symbol twice #5005

Open
HTofi opened this issue Oct 21, 2024 · 0 comments
Open
Labels

Comments

@HTofi
Copy link

HTofi commented Oct 21, 2024

Details

Creating a plot with multiple data sets and using the option markershape=:auto leads to the repitition of the + marker on the first and third sets. Here is an example code along with the output figure in the file attached:

p₁ = plot(aspect_ratio=1, legendfontsize=12, xlabel=L"\Re(L)", ylabel=L"\Im(L)", labelfontsize=14, dpi=300, framestyle=:origin, grid=false, tickfont=(9, "computer modern"), left_margin=5mm, legend=:outerright)

plot!(real.(Lt_at_1D), imag.(Lt_at_1D), label=L"$L_{c,1}^s$", markershape=:auto, markersize=3, msw=0)
plot!(real.(Lt_at), imag.(Lt_at), label=L"$L_{c,2}^s$", markershape=:auto, markersize=3, msw=0)
plot!(real.(Lt_at_sig1), imag.(Lt_at_sig1), label=L"$L_{c,3}^s$", markershape=:auto, markersize=3, msw=0)
plot!(real.(Lt_k_1D), imag.(Lt_k_1D), label=L"$L_{c,1}^\kappa$", markershape=:auto, markersize=3, msw=0)
plot!(real.(Lt_k), imag.(Lt_k), label=L"$L_{c,2}^\kappa$", markershape=:auto, markersize=3, msw=0)
plot!(real.(Lt_k_sig1), imag.(Lt_k_sig1), label=L"$L_{c,3}^\kappa$", markershape=:auto, markersize=3, msw=0)

display(p₁)

Output figure: H2_Sc_complex_all.pdf

I think someone made a typo somewhere by writing in :cross instead of :xcross.

Backends

This bug occurs on ( insert x below )

Backend yes no untested
gr (default) x
pythonplot x
plotlyjs x
pgfplotsx x
unicodeplots x
inspectdr x
gaston x

Versions

Plots.jl version: 1.40.8
Backend version (]st -m <backend(s)>): GR v0.73.8
Output of versioninfo():

Julia Version 1.11.0
Commit 501a4f25c2b (2024-10-07 11:40 UTC)
Build Info:
  Official https://julialang.org/ release
Platform Info:
  OS: Linux (x86_64-linux-gnu)
  CPU: 16 × AMD Ryzen 7 5700U with Radeon Graphics
  WORD_SIZE: 64
  LLVM: libLLVM-16.0.6 (ORCJIT, znver2)
Threads: 1 default, 0 interactive, 1 GC (on 16 virtual cores)
Environment:
  JULIA_EDITOR = kate
@HTofi HTofi added the bug label Oct 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant