Plots.jl
Plots.jl copied to clipboard
`colorbar_ticks` for `GR`
Details
colorbar_ticks
does not work with GR
. It does work with PyPlot
. Not sure if not implemented yet?
using Plots
heatmap(rand(10,10); colorbar_ticks=[0.2, 0.5])
I could not find out from https://github.com/JuliaPlots/Plots.jl/issues/3174.
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: 1.16.3
Backend version (]st -m <backend(s)>
): GR v0.57.5
Output of versioninfo()
:
Julia Version 1.6.1
Commit 6aaedecc44 (2021-04-23 05:59 UTC)
Platform Info:
OS: Linux (x86_64-pc-linux-gnu)
CPU: AMD Ryzen Threadripper 3960X 24-Core Processor
WORD_SIZE: 64
LIBM: libopenlibm
LLVM: libLLVM-11.0.1 (ORCJIT, znver2)
Currently GR does not yet support this as it's a relatively new feature in Plots.
Thank you very much for clarifying!
Can anyone give some hint on where to start to implement this in GR? I'm willing to take a look at it.
From a quick look, I would start here: https://github.com/JuliaPlots/Plots.jl/blob/ec4b7a42e1eff7c4484ade7dfc1e53be175f5356/src/backends/gr.jl#L608
Hi. Any progress on the issue? I vastly need colorbar_ticks
for GR
backend.
Hi, is there any update on this? It's an important feature and it has been almost 3 years since this was flagged.
@acroscarrillo There is at least a workaround by drawing the colorbar yourself, e.g., https://discourse.julialang.org/t/set-custom-colorbar-tick-labels/69806/5.
No real progress, but it now has a 50$ bounty