|
From: Thomas S. <t.s...@fz...> - 2009-05-20 08:32:29
|
joachim heintz wrote: > > Thanks a lot for your help. The palette is working now. Unfortunately > I have now a large color palette on the right side of my plot. How can > I get rid of it? > 'unset colorbox' see http://www.gnuplot.info/docs/node167.html joachim heintz wrote: > > And until now I couldn't find a way to show my first column as a > label. Something like 'set label $1' - but what is the correct syntax > for it? > to get a data value as a key - within one plot command - first do a dummy plot to get this data value into a variable, and then use this variable for the 'title' of the next plot: plot "myfile.txt" every ::1::1 using (my_key=sprintf("%d",$1),0/0):(0/0) notitle, \ "" every ::1::1 using 3:2 with imp title my_key linecolor palette frac 0.0, \ "" every ::1::1 using 6:5 with imp notitle palette frac 0.1, \ ... to get this data value as a label is a little more complicated because you need to do a complete dummy plot (e.g. into a 'dumb' terminal), then define the label, and afterward do the real plot: set terminal push set terminal dumb plot "myfile.txt" every ::1::1 (my_key=sprintf("%d",$1),0/0):(0/0) set label 1 my_key at ... set terminal pop set output "output_filename" plot "myfile.txt" every ::1::1 using 3:2 with imp notitle linecolor palette frac 0.0, \ "" every ::1::1 using 6:5 with imp notitle palette frac 0.1 notitle, \ ... -- View this message in context: http://www.nabble.com/Plot-questions-tp23464492p23631177.html Sent from the Gnuplot - User mailing list archive at Nabble.com. |