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] colorbar ticks and bounding box not affected by foreground_color option #5030

Open
marcusps opened this issue Nov 19, 2024 · 3 comments
Labels

Comments

@marcusps
Copy link

Details

When plotting a heat map in particular, I cannot seem to change the color of the ticks on the color bar (the ticks themselves are a problem, but the tick labels are affected correctly), or the color of the bounding box around the color bar. This is problematic when plotting on a dark background and attempting to get a white foreground.

With this simple example

heatmap(0.01*randn(8,8), clim=(-1e-1,1e-1), c=:bam25)
plot!(
    size=(800,500),
    foreground_color=:red
)

I get the results

with GR
plotsjl_gr_colorbar_tickcolor

with PythonPlot
plotsjl_pythonplot_colorbar_tickcolor

Backends

This bug occurs on ( insert x below )

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

Versions

Plots.jl version:

Status `~/Repos/test/plots/Manifest.toml`
  [91a5bcdd] Plots v1.40.9

Backend version (]st -m <backend(s)>):

Status `~/Repos/test/plots/Manifest.toml`
  [28b8d3ca] GR v0.73.8
  [274fc56d] PythonPlot v1.0.5

Output of versioninfo():

Julia Version 1.9.4
Commit 8e5136fa297 (2023-11-14 08:46 UTC)
Build Info:
  Official https://julialang.org/ release
Platform Info:
  OS: Linux (x86_64-linux-gnu)
  CPU: 20 × 13th Gen Intel(R) Core(TM) i7-1370P
  WORD_SIZE: 64
  LIBM: libopenlibm
  LLVM: libLLVM-14.0.6 (ORCJIT, goldmont)
  Threads: 2 on 20 virtual cores
Environment:
  JULIA_IMAGE_THREADS = 1
@marcusps marcusps added the bug label Nov 19, 2024
@marcusps
Copy link
Author

Also note that adding foreground_color_subplot=:red does not change anything.

@marcusps
Copy link
Author

And I verified that using theme(:dark) or theme(:lime) from PlotThemes behaves in a similar manner (same issue).

@marcusps
Copy link
Author

A work around was proposed in the Julia Discourse server, but the current behaviour still seems to be a bug.

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