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] 3D plots don't respect aspect ratio #5044

Open
jonniediegelman opened this issue Feb 7, 2025 · 0 comments
Open

[BUG] 3D plots don't respect aspect ratio #5044

jonniediegelman opened this issue Feb 7, 2025 · 0 comments
Labels

Comments

@jonniediegelman
Copy link

Details

Try any of

plot([0.0, 1.0], [0.0, 2.0], [0.0, 100.0]; aspect=:equal)
plot([0.0, 1.0], [0.0, 2.0], [0.0, 100.0]; aspect=1)
plot([0.0, 1.0], [0.0, 2.0], [0.0, 100.0]; aspect_ratio=:equal)
plot([0.0, 1.0], [0.0, 2.0], [0.0, 100.0]; aspect_ratio=1)
plot([0.0, 1.0], [0.0, 2.0], [0.0, 100.0]; aspectratio=:equal)
plot([0.0, 1.0], [0.0, 2.0], [0.0, 100.0]; aspectratio=1)

and it will produce a cube visualization area with equal length sides with all axes scaled.

This has always (at least for the last few years) failed with the plotly backend, but now it's failing even in GR.

Backends

This bug occurs on ( insert x below )

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

Versions

Plots.jl version: v1.40.9
Backend version (]st -m <backend(s)>): GR v0.73.12
Output of versioninfo():

Julia Version 1.11.3
Commit d63adeda50d (2025-01-21 19:42 UTC)
Build Info:
  Official https://julialang.org/ release
Platform Info:
  OS: macOS (arm64-apple-darwin24.0.0)
  CPU: 8 × Apple M1
  WORD_SIZE: 64
  LLVM: libLLVM-16.0.6 (ORCJIT, apple-m1)
Threads: 1 default, 0 interactive, 1 GC (on 4 virtual cores)
Environment:
  JULIA_PYTHONCALL_EXE = @PyCall
  JULIA_CONDAPKG_BACKEND = Null
  JULIA_EDITOR = code
  JULIA_PKG_DEVDIR = /Users/jonnie.diegelman/github
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