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] x range drawn two times when using twinx #4325

Closed
curio-sitas opened this issue Aug 31, 2022 · 0 comments · Fixed by #4487
Closed

[BUG] x range drawn two times when using twinx #4325

curio-sitas opened this issue Aug 31, 2022 · 0 comments · Fixed by #4487
Labels

Comments

@curio-sitas
Copy link
Contributor

Details

When ploting using twinx() the x scale range is redrawn a second time. The superposition of the two drawings makes the axe look boldy

https://i.ibb.co/bb77Mnk/lol.png

using Plots

x = 0:0.1:10
y1 = sin.(x)
y2 = cos.(x)

plot(x, y1)
xlabel!("This is the X label")
ylabel!("Y label")
plot!(twinx(), x, y2, yaxis="Second Y label")

Backends

This bug occurs on

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

Versions

Plots.jl version: Plots v1.31.7
Backend version (]st -m <backend(s)>): GR v0.66.2
Output of versioninfo():
Julia Version 1.8.0
Commit 5544a0fab7 (2022-08-17 13:38 UTC)
Platform Info:
OS: Windows (x86_64-w64-mingw32)
CPU: 12 × AMD Ryzen 5 3600 6-Core Processor
WORD_SIZE: 64
LIBM: libopenlibm
LLVM: libLLVM-13.0.1 (ORCJIT, znver2)
Threads: 1 on 12 virtual cores
Environment:
JULIA_EDITOR = code
JULIA_NUM_THREADS =

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

Successfully merging a pull request may close this issue.

1 participant