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] Huge vertical margin of plot_title #4912

Closed
abehersan opened this issue Mar 30, 2024 · 8 comments
Closed

[BUG] Huge vertical margin of plot_title #4912

abehersan opened this issue Mar 30, 2024 · 8 comments
Labels

Comments

@abehersan
Copy link

Details

I updated Plots and StatsPlots. Now there is a massive separation between a general title and the rest of the grid.
See for example:

using Plots

p1 = scatter(rand(5, 1), title = "Subplot 1")
p2 = scatter(rand(5, 1), title = "Subplot 2")
plot(p1, p2, layout=(1, 2), plot_title="Plot title")

bug

Backends

This bug occurs on ( insert x below )

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

Versions

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

@abehersan abehersan added the bug label Mar 30, 2024
@zauster
Copy link

zauster commented Apr 3, 2024

+1

@BeastyBlacksmith
Copy link
Member

v0.73.3

Thats the version of what?

@zauster
Copy link

zauster commented Apr 4, 2024

That must be the version of GR, as I have the same:

st -m GR

yields

[28b8d3ca] GR v0.73.3

and versioninfo() yields for me

Julia Version 1.10.2
Commit bd47eca2c8a (2024-03-01 10:14 UTC)
Build Info:
  Official https://julialang.org/ release
Platform Info:
  OS: Linux (x86_64-linux-gnu)
  CPU: 6 × AMD Ryzen 5 4500U with Radeon Graphics
  WORD_SIZE: 64
  LIBM: libopenlibm
  LLVM: libLLVM-15.0.7 (ORCJIT, znver2)
Threads: 1 default, 0 interactive, 1 GC (on 6 virtual cores)
Environment:
  JULIA_ERROR_COLOR = red
  JULIA_NUM_THREADS = 1

@abehersan
Copy link
Author

abehersan commented Apr 4, 2024

My bad, v0.73.3 is indeed of GR.

The full output of versioninfo() yields:

Julia Version 1.10.2
Commit bd47eca2c8a (2024-03-01 10:14 UTC)
Build Info:
  Official https://julialang.org/ release
Platform Info:
  OS: Linux (x86_64-linux-gnu)
  CPU: 8 × 11th Gen Intel(R) Core(TM) i5-1145G7 @ 2.60GHz
  WORD_SIZE: 64
  LIBM: libopenlibm
  LLVM: libLLVM-15.0.7 (ORCJIT, tigerlake)
Threads: 1 default, 0 interactive, 1 GC (on 8 virtual cores)

@BeastyBlacksmith
Copy link
Member

What is your Plots Version?

@jmanthony3
Copy link

jmanthony3 commented Apr 4, 2024

I have this same issue with Plots v1.40.3.

EDIT: I don't seem to have this issue with v1.40.2.

@zauster
Copy link

zauster commented Apr 5, 2024

I have this same issue with Plots v1.40.3.

EDIT: I don't seem to have this issue with v1.40.2.

I can confirm this. I downgraded to 1.40.2 and this huge vertical space is no longer included in my plots.

@ktitimbo
Copy link

Any way to fix this other than downgrading? I added a full-width phantom plot with only the title, it gives the desired output, but this is far from the ideal

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

5 participants