Plots.jl icon indicating copy to clipboard operation
Plots.jl copied to clipboard

`colorbar_ticks` for `GR`

Open jamblejoe opened this issue 3 years ago • 8 comments

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)

jamblejoe avatar Jun 08 '21 22:06 jamblejoe

Currently GR does not yet support this as it's a relatively new feature in Plots.

isentropic avatar Jun 09 '21 02:06 isentropic

Thank you very much for clarifying!

jamblejoe avatar Jun 09 '21 09:06 jamblejoe

Can anyone give some hint on where to start to implement this in GR? I'm willing to take a look at it.

lmiq avatar Jul 03 '23 19:07 lmiq

From a quick look, I would start here: https://github.com/JuliaPlots/Plots.jl/blob/ec4b7a42e1eff7c4484ade7dfc1e53be175f5356/src/backends/gr.jl#L608

BeastyBlacksmith avatar Jul 04 '23 14:07 BeastyBlacksmith

Hi. Any progress on the issue? I vastly need colorbar_ticks for GR backend.

AdamWysokinski avatar Aug 01 '23 16:08 AdamWysokinski

Hi, is there any update on this? It's an important feature and it has been almost 3 years since this was flagged.

acroscarrillo avatar Apr 25 '24 10:04 acroscarrillo

@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.

jamblejoe avatar Apr 25 '24 11:04 jamblejoe

No real progress, but it now has a 50$ bounty

BeastyBlacksmith avatar Apr 26 '24 15:04 BeastyBlacksmith