|
From: Patrik.Br. <pat...@gm...> - 2012-02-23 15:46:49
|
Hello,
I want to set a background color using a rectangle object. I also want to
plot a small graph inside the bigger one. When I do this all text in the
inserted graph seems to hide behind the background rectangle, unless I
specify a grid in the first graph and set it to front. A small working
example below. Is this a bug or can I bring all text to front without also
bringing the grid to front?
Thanks in advance!
# Set terminal properties
set terminal epslatex color standalone size 13cm, 9cm 'default' 10 header
'\usepackage[T1]{fontenc}'
set output 'testBug.tex'
set multiplot
# Background
set object 1 rect from graph 0,graph 0 to graph 1,graph 1 fc rgb "#ABCDEF"
fs solid 1.0 noborder behind
# This is the crux. If I use 'set grid front' all text is visible
set grid
# set grid front
plot [-2:2] sin(x) notitle
# Second graph
set tmargin 0; set bmargin 0; set rmargin 0; set lmargin 0
set size 0.15
set origin 0.3,0.325
set xlabel '$\theta$'
plot [-2:2] cos(x) notitle
unset multiplot
--
View this message in context: http://old.nabble.com/Bug-with-epslatex-and-background-color-when-using-multiplot--tp33378753p33378753.html
Sent from the Gnuplot - User mailing list archive at Nabble.com.
|