There are, of course other ways of doing this in earlier gnuplots,
depending on the terminal chosen. PNG, for example has a syntax that
allows background, foreground, and other colors to be specified. I have
found that black-background graphs are especially stunning visually and
have converted all my graphs to work that way. I suppose this might not
work so well for printing.
Thomas Sefzick wrote:
> use gnuplot version 4.4:
>
> set style line 99 linetype 0 linecolor rgb "#ffffff"
> set key top left textcolor linestyle 99
> set grid linestyle 99
> set object 1 rect from graph 0, 0, 0 to graph 1, 1, 0 \
> behind lw 1.0 fc rgb "#000000" fillstyle solid 1.00 border -1
> plot sin(x)
>
>
> babelproofreader wrote:
>> With the script below I have set the background colour of the plot to
>> black, but the problem is that the text in the key and the grid lines are
>> also black and so can't be seen. How can I change the key text and grid
>> line colours so that they can be seen?
>>
>> reset
>>
>> set title " $1 Prices with Kalman filter"
>> set datafile separator ","
>> set key top left
>> set xdata time
>>
>> set timefmt "%d/%m/%Y"
>> set grid
>> set object 1 rect from graph 0, 0, 0 to graph 1, 1, 0 behind lw 1.0 fc rgb
>> "#000000" fillstyle solid 1.00 border -1
>>
>> plot "$1ind" using 1:2:3:4:5 notitle with candlesticks lt 9, \
>> "$1ind" using 1:24 title 'Optimum kalman' with line lt 1
>>
>
|