How to change the background color in GR?

I use GR as a quick plotting back-end, as it’s faster than loading the Plots package.

Can anyone tell me how to change the default background color of GR plots from transparent to white? (Ideally permanently). I usually code in Juno or Jupyter with a dark theme, and in both cases it’s difficult to see the plot with black axis / text over the dark background.

(i dont use jupyter, but i checked the code of GR.jl and i found this:

GR.plot(x,y,backgroundcolor=255) 

it seems to use Int32 for the color values(i tested putting numbers xD). so i can infer that accepts colors of the type RGB, with alpha values, coded as a int32

1 Like

usecolorscheme(2) might alleviate some of your problems (though it still looks like this):

1 Like