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] framestyle=:box contradict with ymirror=true on pgfplotsx #4634

Closed
Elycoo opened this issue Jan 17, 2023 · 2 comments · Fixed by #4686
Closed

[BUG] framestyle=:box contradict with ymirror=true on pgfplotsx #4634

Elycoo opened this issue Jan 17, 2023 · 2 comments · Fixed by #4686

Comments

@Elycoo
Copy link

Elycoo commented Jan 17, 2023

Details

I want to mirror the yaxis with ymirror=true but when I add framestyle=:box it moves the axis back to the left.
Here is a MWE:

using Plots
pgfplotsx()
plot(1:5,ymirror=true) |> display
plot(1:5,ymirror=true,framestyle=:box)

the figures are:
plot_39
and
plot_40

Backends

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

Versions

Plots.jl version:
⌃ [91a5bcdd] Plots v1.36.1
Backend version (]st -m <backend(s)>):

⌅ [28b8d3ca] GR v0.69.5
  [8314cec4] PGFPlotsX v1.5.3

Output of versioninfo():

Julia Version 1.8.2
Commit 36034abf260 (2022-09-29 15:21 UTC)
Platform Info:
  OS: Linux (x86_64-linux-gnu)
  CPU: 8 × Intel(R) Core(TM) i7-9700 CPU @ 3.00GHz
  WORD_SIZE: 64
  LIBM: libopenlibm
  LLVM: libLLVM-13.0.1 (ORCJIT, skylake)
  Threads: 1 on 8 virtual cores
@Elycoo
Copy link
Author

Elycoo commented Feb 7, 2023

Looks like the relevant line is here.
What will happen if I'll add :box to that line?

@BeastyBlacksmith
Copy link
Member

What will happen if I'll add :box to that line?

The easiest way to check is to make that change locally and run it. If you have never done this before this video might give you valuable information.

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.

2 participants