ahay / src

Main Madagascar source

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Plotting with Madagascar

seaninho94 opened this issue · comments

Is it possible to change the background of the images? I have always a black background and yellow lines when I use sfgraph or sfwiggle, can I change it to black lines over white?

Thank you

in your Sconstruct you can add
import os
os.environ['SFPENOPTS'] = 'bgcolor=w'

I tried but it didn't change anything

do you use sfpen for display?
I don't know where things are today as I am still on Madagascar 2
You have to dig the environmental variable of your rendering routine.

Try sfpen bgcolor=w filename.vpl

Ok thank you very much, now it works. There are other options for bgcolor?

There are four options:

src/pens/main/oglpen.c

Lines 195 to 208 in 9cafc45

if (NULL == (color = sf_getstring ("bgcolor"))) color = "black";
/* background color (black,white,light,dark) */
switch (color[0]) {
case 'b': /* black */
case 'd': /* dark */
default:
light = false;
break;
case 'w': /* white */
case 'l': /* light */
light = true;
break;
}

But there are only two background colors, white or black.