|
From: Gopesh P. <gop...@ya...> - 2008-04-10 15:19:22
|
I have a multiplot attached in the .png file here. I have kept some blank space in one of the multiplots in which I want to display something, for example my name "GOPESH". I tried to do it by set label command but was not successful. My code snippet to generate attached plot is like this. Can some one help which command should I write to display my name in fourth plot? http://www.nabble.com/file/p16609073/test.png test.png set multiplot set size 0.5,0.5 set origin 0,0.5 set xlabel "Angle [Radian]" font 'tahoma, 10' textcolor lt 8 set ylabel "Experimental Gray Values" font 'tahoma, 10' textcolor lt 8 plot DataFile using 4:2 with lines set size 0.5,0.5 set origin 0.5,0 set xlabel "Exponents [n=2]" font 'tahoma, 10' textcolor lt 8 set ylabel "Coefficients" font 'tahoma, 10' textcolor lt 8 plot FitParametersFile using 3:2 title 'Coeff' with linespoints set size 0.5,0.5 set origin 0.5,0.5 set xlabel 'Radius [% of Aperture]' font 'tahoma, 10' textcolor lt 8 set ylabel 'Differential Transmission [Degree]' font 'tahoma, 10' textcolor lt 8 plot FitParametersFile using 1:3 title 'psi' with linespoints, g(x) title 'Fit curve for psi' unset multiplot -- View this message in context: http://www.nabble.com/Please-help-with-labels-in-multiplot-tp16609073p16609073.html Sent from the Gnuplot - User mailing list archive at Nabble.com. |
|
From: Thomas S. <t.s...@fz...> - 2008-04-10 18:24:31
|
set multiplot set label 1 "GOPESH" at screen 0.25,0.25 center set size 0.5,0.5 .... it's important to give the position in screen coordinates. as far as i understood, you want the label instead of a 4th plot? -- View this message in context: http://www.nabble.com/Please-help-with-labels-in-multiplot-tp16609073p16612735.html Sent from the Gnuplot - User mailing list archive at Nabble.com. |
|
From: Gopesh P. <gop...@ya...> - 2008-04-10 20:31:49
|
ok so i got it. I cant include a label without plotting something. so if my 4th plot is empty then i cant give a label on it. then I have to give a label on 3rd plot. Thomas Sefzick wrote: > > set multiplot > > set label 1 "GOPESH" at screen 0.25,0.25 center > > set size 0.5,0.5 > .... > > it's important to give the position in screen coordinates. > as far as i understood, you want the label instead of a 4th > plot? > > -- View this message in context: http://www.nabble.com/Please-help-with-labels-in-multiplot-tp16609073p16617630.html Sent from the Gnuplot - User mailing list archive at Nabble.com. |
|
From: Thomas S. <t.s...@fz...> - 2008-04-11 07:35:26
|
> ok so i got it. I cant include a label without plotting something. right, you need at least one plot in your multiplot environment. > so if my 4th plot is empty then i cant give a label on it. > then I have to give a label on 3rd plot. no, see 'help multiplot': > Any labels or arrows that have been defined will be drawn > for each plot according to the current size and origin > (unless their coordinates are defined in the `screen` system). labels whose position is given in screen coordinates can be placed everywhere, even across the borders of individual plots in the multiplot environment, and, these labels of only plotted once. an example: -------------------------------- set multiplot set label 1 "GOPESH_1" at screen 0.25,0.25 center set label 2 "GOPESH_2" at screen 0.75,0.75 center set label 3 "this is a very loooooong label" at screen 0.5,0.7 center set size 0.5,0.5 set origin 0,0 plot x set origin 0,0.5 plot x set origin 0.5,0 plot x set origin 0.5,0.5 plot x unset multiplot --------------------------- or ---------------------- set multiplot set label 1 "GOPESH_1" at screen 0.25,0.25 center set label 2 "GOPESH_2" at screen 0.75,0.75 center set label 3 "this is a very loooooong label" at screen 0.5,0.7 center set size 0.5,0.5 set origin 0,0 plot x unset multiplot ----------------------------- -- View this message in context: http://www.nabble.com/Please-help-with-labels-in-multiplot-tp16609073p16626387.html Sent from the Gnuplot - User mailing list archive at Nabble.com. |
|
From: Gopesh P. <gop...@ya...> - 2008-04-11 08:41:07
|
Thanks a lot Thomas. This works as I expected. Thomas Sefzick wrote: > >> ok so i got it. I cant include a label without plotting something. > > right, you need at least one plot in your multiplot environment. > >> so if my 4th plot is empty then i cant give a label on it. >> then I have to give a label on 3rd plot. > > no, see 'help multiplot': >> Any labels or arrows that have been defined will be drawn >> for each plot according to the current size and origin >> (unless their coordinates are defined in the `screen` system). > > labels whose position is given in screen coordinates can be > placed everywhere, even across the borders of individual > plots in the multiplot environment, and, these labels of only > plotted once. > > an example: > > -------------------------------- > set multiplot > > set label 1 "GOPESH_1" at screen 0.25,0.25 center > set label 2 "GOPESH_2" at screen 0.75,0.75 center > set label 3 "this is a very loooooong label" at screen 0.5,0.7 center > > set size 0.5,0.5 > set origin 0,0 > plot x > > set origin 0,0.5 > plot x > > set origin 0.5,0 > plot x > > set origin 0.5,0.5 > plot x > > unset multiplot > --------------------------- > > or > > ---------------------- > set multiplot > > set label 1 "GOPESH_1" at screen 0.25,0.25 center > set label 2 "GOPESH_2" at screen 0.75,0.75 center > set label 3 "this is a very loooooong label" at screen 0.5,0.7 center > > set size 0.5,0.5 > set origin 0,0 > plot x > > unset multiplot > ----------------------------- > > -- View this message in context: http://www.nabble.com/Please-help-with-labels-in-multiplot-tp16609073p16627266.html Sent from the Gnuplot - User mailing list archive at Nabble.com. |