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] vline! overrides previously set formatter #4538

Closed
yha opened this issue Nov 21, 2022 · 2 comments · Fixed by #4619
Closed

[BUG] vline! overrides previously set formatter #4538

yha opened this issue Nov 21, 2022 · 2 comments · Fixed by #4619

Comments

@yha
Copy link
Member

yha commented Nov 21, 2022

Details

plot(rand(4) .* 10^6, rand(4) .* 10^6, xformatter=:plain, yformatter=:plain)
vline!([10^6])

image

xformatter=:plain, yformatter=:plain is ignored.

This works fine with hline!:

plot(rand(4) .* 10^6, rand(4) .* 10^6, xformatter=:plain, yformatter=:plain)
hline!([10^6])

image

Backends

This bug occurs on ( insert x below )

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

Versions

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

Julia Version 1.7.2
Commit bf53498635 (2022-02-06 15:21 UTC)
Platform Info:
  OS: Windows (x86_64-w64-mingw32)
  CPU: Intel(R) Core(TM) i7-9800X CPU @ 3.80GHz
  WORD_SIZE: 64
  LIBM: libopenlibm
  LLVM: libLLVM-12.0.1 (ORCJIT, skylake-avx512)
Environment:
  JULIA_EDITOR = code
  JULIA_NUM_THREADS = 4
@yha yha added the bug label Nov 21, 2022
@bbejanov
Copy link

I have the same issue using the GR backend.
https://discourse.julialang.org/t/how-to-preserve-xformatter-when-adding-a-vline/92051

@pablosaa
Copy link

I would like to report that the changes to solve this bus have, however, created the following new bug: #4660

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

Successfully merging a pull request may close this issue.

4 participants