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] twinx() doesn't work nicely with framestyle and ticks #4951

Open
kosukesando opened this issue Jun 25, 2024 · 0 comments
Open

[BUG] twinx() doesn't work nicely with framestyle and ticks #4951

kosukesando opened this issue Jun 25, 2024 · 0 comments
Labels

Comments

@kosukesando
Copy link

Details

  1. Using twinx without specifying framestyle, the ticks are duplicated onto the left
  2. Using twinx causes GR to not respect framestyle, but (kind of) fixes issue 1

I have a suspicion this has something to do with the "ticks on all four sides" FR

  • No framestyle specified (notice weird ticks on left)
    image

  • :box for both axis (notice weird ticks on left)
    image

  • :semi for both axis (a grey border is visible on top, unlike other combinations)
    image

  • :box for main, :semi for twinx (ticks are okay but the :box is not respected)
    image

In my limited testing it seems specifying the :semi for the twinx fixes the duplicate ticks, but the framestyle for the main axis is somewhat overridden by default.
I'm not sure if this is expected behavior, at least the documentation doesn't mention anything about this.

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: v1.40.4
Backend version (]st -m <backend(s)>): v0.73.5+0
Output of versioninfo():

Julia Version 1.10.4
Commit 48d4fd48430 (2024-06-04 10:41 UTC)
Build Info:
  Official https://julialang.org/ release
Platform Info:
  OS: Linux (x86_64-linux-gnu)
  CPU: 16 × AMD Ryzen 7 PRO 7730U with Radeon Graphics
  WORD_SIZE: 64
  LIBM: libopenlibm
  LLVM: libLLVM-15.0.7 (ORCJIT, znver3)
Threads: 1 default, 0 interactive, 1 GC (on 16 virtual cores)
Environment:
  JULIA_PKG_USE_CLI_GIT = true
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