Skip to content

[BUG] axis labels overlap with plots in large subplots #3378

@SteffenPL

Description

@SteffenPL

Details

For large subplots (i.e. > 6 subplots in one direction) the x- and y-axis labels travel into the plots.
The problem gets worse if more subplots are added.

function make_plot(N,M)
    plotsize = (400,400)
    plts = [plot(1:10, ylabel="Some Text", plotsize=plotsize) for i in 1:N*M]
    plot(plts..., layout=grid(N,M), size=plotsize .* (M,N))
end

make_plot(1,8)
make_plot(1,12)

demo_18

demo_112

Backends

This bug occurs on ( insert x below )

Backend yes no untested
gr (default) x
pyplot x
plotly x
plotlyjs x
pgfplotsx x
inspectdr x

Versions

Plots.jl version:
[91a5bcdd] Plots v1.10.2

Backend version (]st -m):
[28b8d3ca] GR v0.53.0
[d2c73de3] GR_jll v0.53.0+0

Output of versioninfo():

Julia Version 1.5.3
Commit 788b2c77c1 (2020-11-09 13:37 UTC)
Platform Info:
OS: Windows (x86_64-w64-mingw32)
CPU: Intel(R) Core(TM) i7-9750H CPU @ 2.60GHz
WORD_SIZE: 64
LIBM: libopenlibm
LLVM: libLLVM-9.0.1 (ORCJIT, skylake)
Environment:
JULIA_DEPOT_PATH = C:\Users\steff.julia;D:\JuliaPro-1.5.3-1\Julia-1.5.3\local\share\julia;D:\JuliaPro-1.5.3-1\Julia-1.5.3\share\julia
JULIA_EDITOR = "D:\JuliaPro-1.5.3-1\app-1.53.0\atom.exe" -a
JULIA_LOAD_PATH = C:\Users\steff.julia\environments\JuliaPro_v1.5.3-1;@;@v#.#;@StdLib
JULIA_NUM_THREADS = 12
JULIA_PKG_SERVER = pkg.juliahub.com

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions