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] Space between ticks and axis becomes too large in big plots #5036

Open
jamblejoe opened this issue Dec 2, 2024 · 1 comment
Open
Labels

Comments

@jamblejoe
Copy link
Contributor

Details

In this figure below created by

plot([plot([1,2,3]) for _ in 1:10]...; layout=(1,10), size=(5000,300))

grafik

the space between the axis ticks and the actual axis is too large. I have not found a workaround yet.

Backends

This bug occurs on ( insert x below )

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

Versions

Plots.jl version: 1.40.9
Backend version (]st -m <backend(s)>): 0.73.8
Output of versioninfo():

Julia Version 1.10.5
Commit 6f3fdf7b362 (2024-08-27 14:19 UTC)
Build Info:
  Official https://julialang.org/ release
Platform Info:
  OS: macOS (arm64-apple-darwin22.4.0)
  CPU: 8 × Apple M1
  WORD_SIZE: 64
  LIBM: libopenlibm
  LLVM: libLLVM-15.0.7 (ORCJIT, apple-m1)
Threads: 4 default, 0 interactive, 2 GC (on 4 virtual cores)
Environment:
  JULIA_EDITOR = code
  JULIA_NUM_THREADS = 4
@jamblejoe jamblejoe added the bug label Dec 2, 2024
@jamblejoe
Copy link
Contributor Author

A workaround is to plot each subplot individually, render in an IOStream and then load again the in an aggregating plot(...), i.e.

n = 10
io_buffers = [IOBuffer() for _ in 1:n]
for i in 1:n
    plot([1,2,3])
    png(io_buffers[i])
end
plot((plot(load(io)) for io in io_buffers)...;
    axis=nothing,
    border=:none,
    layout=(1,10),
    size=(500*10,300),
)

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