Skip to content

[BUG] vline! overrides previously set formatter #4538

@yha

Description

@yha

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions