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] Plotly colorbar size does not scale with plot size #4547

Closed
stevenaleung opened this issue Nov 24, 2022 · 2 comments · Fixed by #4569
Closed

[BUG] Plotly colorbar size does not scale with plot size #4547

stevenaleung opened this issue Nov 24, 2022 · 2 comments · Fixed by #4569

Comments

@stevenaleung
Copy link
Contributor

stevenaleung commented Nov 24, 2022

Details

By default, the plotly colorbar is slightly offset in the y direction:

using Plots
data = rand(3, 3);
heatmap(data)

Increasing the tick font size shows that the colorbar also doesn't scale with plot size:

heatmap(data, colorbar=:right, tickfont=30, xlabel="test")

Backends

This bug occurs on ( insert x below )

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

Versions

Plots.jl version: 1.36.4
Backend version (]st -m <backend(s)>):

Output of versioninfo():
Julia Version 1.8.2
Commit 36034abf26 (2022-09-29 15:21 UTC)
Platform Info:
OS: Windows (x86_64-w64-mingw32)
CPU: 4 × Intel(R) Core(TM) i5-3570K CPU @ 3.40GHz
WORD_SIZE: 64
LIBM: libopenlibm
LLVM: libLLVM-13.0.1 (ORCJIT, ivybridge)
Threads: 1 on 4 virtual cores

@t-bltg
Copy link
Member

t-bltg commented Nov 24, 2022

Xref #1180

@stevenaleung
Copy link
Contributor Author

The main issue is the static colorbar size rather than the colorbar font - updating the title to reflect this

@stevenaleung stevenaleung changed the title [BUG] Plotly colorbar does not scale with plot size [BUG] Plotly colorbar size does not scale with plot size Nov 30, 2022
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