sciapp / gr

GR framework: a graphics library for visualisation applications
Other
329 stars 54 forks source link

set background color #67

Open bodokaiser opened 5 years ago

bodokaiser commented 5 years ago

I am using a dark Jupyter theme and would like to set the background color of the GR plots to white.

I already tried gr3.setbackgroundcolor.

screenshot 2018-10-30 at 11 24 45
jheinen commented 5 years ago

You will have to switch the GR color theme, too:

inline("atom")   # not required
usecolorscheme(2)
bodokaiser commented 5 years ago
screenshot 2018-10-30 at 11 24 45

Without the inline("atom"):

screenshot 2018-10-30 at 11 56 59

Also tried colorschemes up to 5 (I believe they don't change for higher values).

AhmedSalih3d commented 5 years ago

Go to file --> stylesheet, add this code

.ink-plot-pane { // color: white; background-color: whitesmoke; }

image

And save and voila :-)