|
From: joachim h. <jh...@jo...> - 2009-05-20 23:02:24
|
Thanks. 'unset colorbox' does its job. But with you suggestion
regarding getting a data value as a key I get the following:
gnuplot> plot "/Joachim/ShellSkripte/00gnuplot/Ganze1_12pms.txt"
every ::1::1 using (my_key=sprintf("%d",$1),0/0):(0/0) notitle, "/
Joachim/ShellSkripte/00gnuplot/Ganze1_12pms.txt" every ::a::a using
3:2 with imp title my_key linecolor palette frac 0, "/Joachim/
ShellSkripte/00gnuplot/Ganze1_12pms.txt" every ::a::a using 6:5 with
imp title my_key linecolor palette frac .333333, "/Joachim/
ShellSkripte/00gnuplot/Ganze1_12pms.txt" every ::a::a using 9:8 with
imp title my_key linecolor palette frac .666666
^
"/tmp/gnupl005512.txt", line 7: ')' expected
(no newlines in the terminal output; just in this email)
Am I doing something wrong? No idea which ')' I am missing.
joachim
Am 20.05.2009 um 10:32 schrieb Thomas Sefzick:
>
>
> 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.
>
>
> ------------------------------------------------------------------------------
> Crystal Reports - New Free Runtime and 30 Day Trial
> Check out the new simplified licensing option that enables
> unlimited royalty-free distribution of the report engine
> for externally facing server and web deployment.
> http://p.sf.net/sfu/businessobjects
> _______________________________________________
> Gnuplot-info mailing list
> Gnu...@li...
> https://lists.sourceforge.net/lists/listinfo/gnuplot-info
>
|