Plots.jl: heatmap without a colorbar

Created on 29 Oct 2017  路  2Comments  路  Source: JuliaPlots/Plots.jl

I am using Plots + the included Plotly backend
with Julia 0.6.0 on Windows.

Whatever I do, the following code produces a colorbar:

z = rand(32,32)
heatmap(z, size=(600,600), colorbar=false)
heatmap(z, size=(600,600), colorbar=:none)

How can I get a heatmap without a colorbar?

Most helpful comment

Thanks for reporting this!

This is not how it should be but legend = :none will get rid of the colorbar.

Issue is that Plots uses the wrong Plotly attribute to hide the colorbar. The correct attribute is currently controlled by legend. This is a bug, I'll try to fix this when I get time for now the above should work 馃槃

All 2 comments

Thanks for reporting this!

This is not how it should be but legend = :none will get rid of the colorbar.

Issue is that Plots uses the wrong Plotly attribute to hide the colorbar. The correct attribute is currently controlled by legend. This is a bug, I'll try to fix this when I get time for now the above should work 馃槃

Thanks for the trick!
And looking forward to the real solution.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

mkborregaard picture mkborregaard  路  3Comments

lstagner picture lstagner  路  5Comments

cortner picture cortner  路  4Comments

jebej picture jebej  路  4Comments

crstnbr picture crstnbr  路  3Comments