Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.graphics.apps.gnuplot > #346

Gnuplot forgets textcolor of title, xlabel, ylabel and key when using terminal emf

From Tristan <Sethur2@gmx.net>
Newsgroups comp.graphics.apps.gnuplot
Subject Gnuplot forgets textcolor of title, xlabel, ylabel and key when using terminal emf
Date 2011-05-31 14:50 +0200
Message-ID <94k6g2F23nU1@mid.dfncis.de> (permalink)

Show all headers | View raw


Hi,

I am using 
http://gnuplot.sourceforge.net/development/binaries/gp45-20110525-win-mingw.zip, 
and have encountered the following bug when trying to change the text 
and line colors to be suitable for a dark background using the emf 
(enhanced metafile) terminal:

When running the following script, the textcolors of the title, labels 
and the key are not kept by gnuplot, but reset to black, although the 
command "show title/xlabel/ylabel/key" will claim that the color is 
still set to rgb "white". I have to restart gnuplot to produce several 
emf plots with a white background. I haven't tried this for different 
terminals, yet.


Any ideas?

Tristan

**** Start of Script ****

set title "Some title"
set xlabel "Some xlabel"
set ylabel "Some ylabel"
set grid
set style data linespoints
set key right top

set border linecolor rgb "white"
set grid linecolor rgb "white"
set xtics textcolor rgb "white"
set ytics textcolor rgb "white"
set title textcolor rgb "white"
set xlabel textcolor rgb "white"
set ylabel textcolor rgb "white"
set key textcolor rgb "white"  	

set terminal emf color enhanced 22
set output "ItWorksHere.emf"

plot sin(x) t "Sinus" lw 2, cos(x) t "Cosinus" lw 2

set output "ItsBlackAgain.emf"
replot

**** End of Script ****

Back to comp.graphics.apps.gnuplot | Previous | NextNext in thread | Find similar


Thread

Gnuplot forgets textcolor of title, xlabel, ylabel and key when using terminal emf Tristan <Sethur2@gmx.net> - 2011-05-31 14:50 +0200
  Re: Gnuplot forgets textcolor of title, xlabel, ylabel and key when using terminal emf sfeam <sfeam@users.sourceforge.net> - 2011-05-31 13:07 -0700

csiph-web