Skip to content

colorbar ticks and bounding box not affected by foreground_color option #5030

@marcusps

Description

@marcusps

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions