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

hstack "blacks out" spy plots

Open ghost opened this issue 7 years ago • 6 comments

julia 0.5, latest release of Gadfly

This seems to be based on the range of values present in the matrix being plotted. This does not occur when a wider range of values are present.

weird

ghost avatar Jan 16 '17 22:01 ghost

That's a crazy bug. Does this happen when you output to a .png or .svg file?

tlnagy avatar Jan 17 '17 22:01 tlnagy

It does render when I export it to a .png

ghost avatar Jan 18 '17 02:01 ghost

Does this happen in jupyter notebooks as well? This might be a weird artifact with Juno displaying SVGs

tlnagy avatar Jan 26 '17 21:01 tlnagy

The error occurred in a jupyter notebook (I use a dark theme). I did not try running it in Juno.

ghost avatar Jan 26 '17 21:01 ghost

Ah. It just looked like Juno. Yeah, I've run into this bug intermittently. Not sure why the blanking out happens.

tlnagy avatar Jan 26 '17 21:01 tlnagy

With Gadfly v1.3, and in jupyter I see the following:

raw_img = rand([1.0, 0.0], 20, 20)
fig1 = spy(raw_img, Scale.color_continuous(minvalue=0, maxvalue=1), Guide.xlabel(nothing),
Guide.ylabel(nothing), Guide.xticks(ticks=nothing), Guide.yticks(ticks=nothing), 
    Theme(key_position=:none))
draw(SVGJS(), hstack(fig1, fig1)) # works
hstack(fig1, fig1) # blacks out

My comments on the last 2 lines.

Mattriks avatar Jun 10 '20 00:06 Mattriks