|
From: Thomas S. <t.s...@fz...> - 2010-05-05 07:22:32
|
you forgot to 'unset label' after the 2nd plot. Trillianx wrote: > > I have been doing a multiplot and have used the following code given > below. The code works well but as can be seen from the image, the "second > plot from bottom" is creating a ghost label "12432 (K I)" that appears in > the "third plot from bottom". When I move the label up or down, the second > label moves the same amount and direction. Removing the label from the > plot removes BOTH of them. Please help!! > > http://old.nabble.com/file/p28454453/Screenshot.png > > reset > #set terminal postscript eps monochrome "Times-Roman" 10 > #set output "data.eps" > #set size 1.4,1.4 > #*********************************************************************** > ##----Setting small tics > set mytics 5 > unset key > > #*********************************************************************** > ##--Setting y-range for all plots > #set yrange[0.5:7] > set xrange[0.5:6] > #*********************************************************************** > ## Setting ylabels for all plots > set encoding iso_8859_1 > set ylabel "p-EW (\305)" > > > ##Defining variables > NX = 1; NY = 3 > OX = 0.05; OY = 0.05 # Box position from origin in x,y > SX = 0.5; SY = 0.3 # Box size in x and y > ##Setting margins > # the prefixes stand for, b=bottom, t=top, l=left, r=right > set bmargin OX; set tmargin OX; set lmargin OY; set rmargin OY > set size SX*NX+OX*1.5, SY*NY+OY*1.8 > > > set ytics 0.0,1,10 > set xtics 0.0,1.0,6 > ## define and then unset x2tics for later use > set x2tics 0.0,1,6 > unset x2tics > PY = 0.298 # Change this to define the size of the box. > > > ## reserve some space for x- and y-labels by shifting > ## the plots a little bit > OX=1.7*OX > OY=1.5*OY > > set terminal postscript eps enhanced > set output "multipotassium.eps" > > set multiplot > ## First plot from bottom------------------------------------ > set size SX,SY > set origin OX,OY > set xtics ("M5.0" 1.00000, "" 1.5, "M6.0" 2.00000, "" 2.5, "M7.0" 3.0, "" > 3.5, "M8.0" 4.0, "" 4.5, "M9.0" 5.0, "" 5.5) > set ytics 0.0,2,7 > set yrange[0.5:7] > set xlabel "Spectral Type" > set label "12522 \305 (K I)" at .8, 6.0 > f(x) = m*x + b > fit [1:5.5] f(x) "12530.dat" u 1:2 via m,b > plot "12530.dat" u 1:2:4 linecolor 1 w yerrorbars, "12530_2.dat" u 1:2 w p > 7, f(x) w l lt 4, "12530.dat" u 1:2 w p 3, "12530_2.dat" u 1:2:4 > linecolor 2 w yerrorbars > unset label > > ## Second plot from bottom------------------------------------ > set origin OX,PY+OY > unset xlabel > set yrange[0:6] > set ytics 0.0,2,10 > set xtics ("" 1.00000,"" 1.5, "" 2.00000,"" 2.5, "" 3.0, "" 3.5, "" 4.0, > "" 4.5, "" 5.0, "" 5.5) > set label "12432 \305 (K I)" at 0.8, 5.3 > g(x) = m*x + b > fit [1:5.5] g(x) "12440.dat" u 1:2 via m,b > plot "12440.dat" u 1:2:4 linecolor 1 w yerrorbars, "12440_2.dat" u 1:2 w p > 7, g(x) w l lt 4, "12440.dat" u 1:2 w p 3, "12440_2.dat" u 1:2:4 > linecolor 2 w yerrorbars > > ## Third plot from bottom------------------------------------- > set origin OX,PY*2 + OY > set yrange[0.5:9.3] > set ytics 0.0,2,9 > set label "11772 \305 (K I)" at 0.8, 8.0 > h(x) = m*x + b > fit [1:5.5] h(x) "11771.dat" u 1:2 via m,b > plot "11771.dat" u 1:2:4 linecolor 1 w yerrorbars, "11771_2.dat" u 1:2 w p > 7, g(x) w l lt 4, "11771.dat" u 1:2 w p 3, "11771_2.dat" u 1:2:4 > unset label > > ## Fourth plot from bottom------------------------------------ > set origin OX,PY*3 + OY > # switch x2tics on > set x2tics ("M5.0" 1.00000, "" 1.5, "M6.0" 2.00000, "" 2.5, "M7.0" 3.0, "" > 3.5, "M8.0" 4.0, "" 4.5, "M9.0" 5.0, "" 5.5) > set yrange[0.5:7.0] > set ytics 0.0,2,7.0 > set label "11690 \305 (K I)" at 0.8, 6.0 > f(x) = m*x + b > fit [1:5.5] f(x) "11690.dat" u 1:2 via m,b > plot "11690.dat" u 1:2:4 linecolor 1 w yerrorbars, "11690_2.dat" u 1:2 w p > 7, f(x) w l lt 4, "11690.dat" u 1:2 w p 3, "11690_2.dat" u 1:2:4 > unset multiplot > > -- View this message in context: http://old.nabble.com/Ghost-label-tp28454453p28457542.html Sent from the Gnuplot - User mailing list archive at Nabble.com. |