|
From: Hernán G. A. <as...@gm...> - 2011-09-27 18:00:19
|
Dear Martin, On Tue, Sep 27, 2011 at 14:48, Martin Genet <mg...@lb...> wrote: > Hi Hernán: > > First of all, many thanks for your help. > > On 09/26/2011 06:19 PM, Hernán Gonzalo Asorey wrote: > >> On Mon, Sep 26, 2011 at 21:30, Martin Genet <mg...@lb... <mailto: >> mg...@lb...>> wrote: >> >> I have a system with two inputs (i1 & i2), and one output (o). >> The two parameters are linked by some kind of constraint (c(i1, i2) = >> 0). >> >> I have data in the following format: #i1 i2 o. >> Of course, I can easily plot o(i1) and o(i2). >> I would like to create a plot where I have i1 in x1 axis, and >> corresponding i2 in x2 axis, while having o in y1 axis. >> >> perhaps this: >> set x2tics >> set xtics nomirror >> set xlabel "i1" >> set x2label "i2" >> set ylabel "o" >> plot 'myfile' u 1:3 w l t "o(i1)", '' u 2:3 axes x2y1 t "o(i2)" >> > > However, the problem I see here is that there is no "mapping" between x1 et > x2 axis, though x2 axis should be a transformation of x1 axis through c > constraint. Is there a way to put, for each label of x1 axis, a > corresponding label in x2 axis? > As far as I know, you can replace (or also add) major tics manually. For example (from gnuplot help xtics manual page): set x2tics (1,2,4,8,16,32,64,128,256,512,1024) will put x2tics at 2^n, for n=0..10, but you should add them manually. You can even do this: f(x)=2**x set x2tics (f(0), f(1), f(2), f(3)) and so on, but I don't know if there is a way to force the x2tics (or any other axes tics) directly from a function without specify them in some sense. Cheers, Hernán Thanks again, > Martin. > > > > > > > |