You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I’m saving Gadfly plots as PNG, SVG or JPG but the colour is stripped from them, making them useless. The problem occurs on Mac silicon and linux and the current stable releases of Julia and packages.
Here is the plot in the edit plot window. Interestingly, if I save from the plot window it is fine.
Here is the plot after writing to a file:
If I save a plot on its own it's fine, it's the stacked plots that are the problem.
Here is a code to reproduce:
using DataFrames, Gadfly, Cairo, Random
rd(m) = m .+ 100*randn(100)
f1 = DataFrame(BCL2=rd(500), BCLxL=rd(500), MCL1=rd(500), NOXA=rd(500), dose="0mg")
f2 = DataFrame(BCL2=rd(700), BCLxL=rd(700), MCL1=rd(700), NOXA=rd(700), dose="200mg")
f4p = vcat(f1, f2)
layers = Plot[]
for protein in [:MCL1, :NOXA, :BCLxL, :BCL2]
l = plot(f4p, x=protein, color=:dose, Geom.histogram)
fn = "$(string(protein)).png"
push!(layers, l)
l |> PNG(fn)
end
layers = reshape(layers, 2, 2)
h = gridstack(layers)
display(h)
fn = "broken.png"
h |> PNG(fn)
The text was updated successfully, but these errors were encountered:
I’m saving Gadfly plots as PNG, SVG or JPG but the colour is stripped from them, making them useless. The problem occurs on Mac silicon and linux and the current stable releases of Julia and packages.
Here is the plot in the edit plot window. Interestingly, if I save from the plot window it is fine.
Here is the plot after writing to a file:
If I save a plot on its own it's fine, it's the stacked plots that are the problem.
Here is a code to reproduce:
The text was updated successfully, but these errors were encountered: