Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.graphics.apps.gnuplot > #1943 > unrolled thread

Can't use columnhead() more than once

Started bySerge Terekhov <serge.terekhov@gmail.com>
First post2013-07-30 14:31 -0700
Last post2013-07-31 19:40 +0200
Articles 4 — 3 participants

Back to article view | Back to comp.graphics.apps.gnuplot


Contents

  Can't use columnhead() more than once Serge Terekhov <serge.terekhov@gmail.com> - 2013-07-30 14:31 -0700
    Re: Can't use columnhead() more than once Karl <ratzsch@polymer.uka.de> - 2013-07-31 16:08 +0200
      Re: Can't use columnhead() more than once Serge Terekhov <serge.terekhov@gmail.com> - 2013-07-31 09:58 -0700
        Re: Can't use columnhead() more than once Karl <mail.kfr@gmx.net> - 2013-07-31 19:40 +0200

#1943 — Can't use columnhead() more than once

FromSerge Terekhov <serge.terekhov@gmail.com>
Date2013-07-30 14:31 -0700
SubjectCan't use columnhead() more than once
Message-ID<f518617c-9ba3-4396-86e4-89f9ac5aca3f@googlegroups.com>
Simple plot (data file is ok)

plot "data30Jun.txt" using 1:2 title "Results for ".columnhead(1)." vs ". columnhead(2)

doesn't work (second column name is shown instead of first, but second itself is replaced with @COLUMNHEAD@ string)


Any idea? Thanks.

[toc] | [next] | [standalone]


#1944

FromKarl <ratzsch@polymer.uka.de>
Date2013-07-31 16:08 +0200
Message-ID<ktbcpu$ic4$1@news.rz.uni-karlsruhe.de>
In reply to#1943
On 30.07.2013 23:31, Serge Terekhov wrote:
> Simple plot (data file is ok)
> 
> plot "data30Jun.txt" using 1:2 title "Results for ".columnhead(1)." vs ". columnhead(2)
> 
> doesn't work (second column name is shown instead of first, but second itself is replaced with @COLUMNHEAD@ string)
> 


The help on "columnhead" says

"columnhead(x) may _only_ be used in expressions as part of _using_
manipulations to fits or datafile plots."


, so this is not strictly supposed to work. On the other hand, the
help "Datastrings" gives examples for using it in the "title" statement.

So the documentation needs an update here.

That a second instance of columnhead gives nothing, and the first
one a wrong header then, looks like a bug. Nobody thought about the
possibility of wanting two headers for one plot.


But why do you want the abscissa title in the legend anyway? just
put it in the xlabel. The x-axis is the independant variable, so
everything is plotted vs. the x-axis.


   Karl

[toc] | [prev] | [next] | [standalone]


#1945

FromSerge Terekhov <serge.terekhov@gmail.com>
Date2013-07-31 09:58 -0700
Message-ID<9efa99ca-56d9-4e83-9104-6d3471903f39@googlegroups.com>
In reply to#1944
> 
> The help on "columnhead" says
> 
> 
> 
> "columnhead(x) may _only_ be used in expressions as part of _using_
> 
> manipulations to fits or datafile plots."
> 
> 
> 
> 
> 
> , so this is not strictly supposed to work. On the other hand, the
> 
> help "Datastrings" gives examples for using it in the "title" statement.
> 
> 
> 
> So the documentation needs an update here.
> 
> 
> 
> That a second instance of columnhead gives nothing, and the first
> 
> one a wrong header then, looks like a bug. Nobody thought about the
> 
> possibility of wanting two headers for one plot.
> 
> 
> 
> 
> 
> But why do you want the abscissa title in the legend anyway? just
> 
> put it in the xlabel. The x-axis is the independant variable, so
> 
> everything is plotted vs. the x-axis.
> 
> 
> 
> 
> 
>    Karl

Dear Karl, thanks a lot! Surely, I can display all titles and captions elsewhere. This example was my very first trial with gnuplot - such a novice trials may sometimes lead to behaviors like this :) Thanks again for the explanation.

Serge

[toc] | [prev] | [next] | [standalone]


#1946

FromKarl <mail.kfr@gmx.net>
Date2013-07-31 19:40 +0200
Message-ID<ktbp7o$s4n$1@news.rz.uni-karlsruhe.de>
In reply to#1945
Am 31.07.2013 18:58, schrieb Serge Terekhov:
>>
>> The help on "columnhead" says
>>
>>
>>
>> "columnhead(x) may _only_ be used in expressions as part of _using_
>>
>> manipulations to fits or datafile plots."
>>
>>
>>
>>
>>
>> , so this is not strictly supposed to work. On the other hand, the
>>
>> help "Datastrings" gives examples for using it in the "title" statement.
>>
>>
>>
>> So the documentation needs an update here.
>>
>>
>>
>> That a second instance of columnhead gives nothing, and the first
>>
>> one a wrong header then, looks like a bug. Nobody thought about the
>>
>> possibility of wanting two headers for one plot.
>>
>>
>>
>>
>>
>> But why do you want the abscissa title in the legend anyway? just
>>
>> put it in the xlabel. The x-axis is the independant variable, so
>>
>> everything is plotted vs. the x-axis.
>>
>>
>>
>>
>>
>>    Karl
> 
> Dear Karl, thanks a lot! Surely, I can display all titles and captions elsewhere. This example was my very first trial with gnuplot - such a novice trials may sometimes lead to behaviors like this :) Thanks again for the explanation.
> 
> Serge
> 

I just filed a bug ticket on this

https://sourceforge.net/p/gnuplot/bugs/1271/


 Karl

[toc] | [prev] | [standalone]


Back to top | Article view | comp.graphics.apps.gnuplot


csiph-web