I’m using Plots with GR
Is it possible to make empty plot with colorbar?
I try:
plot(;colorbar=true, clims = (-0.05, 0.05),c = cg, zcolor = 1)
colorbar - not displayed.
Is it possible to change width of colorbar?
I’m using Plots with GR
Is it possible to make empty plot with colorbar?
I try:
plot(;colorbar=true, clims = (-0.05, 0.05),c = cg, zcolor = 1)
colorbar - not displayed.
Is it possible to change width of colorbar?
I would use a layout and instead of the colorbar I would plot a heatmap with only the y-axis labels. See this solution.
Unrelated to the previous answer, for this you need to plot some dummy data (ex: NaN), and use framestyle=:none
plot([1], [NaN]; colorbar=true, clims=(-0.05, 0.05), c=cgrad([:blue, :red]), framestyle=:none)