Screenshot instructions:
Windows
Mac
Red Hat Linux
Ubuntu
Click URL instructions:
Rightclick on ad, choose "Copy Link", then paste here →
(This may not be possible with some types of ads)
From: Martin Genet <mgenet@lb...>  20110927 00:45:51

Dear GNUPlot: I have a system with two inputs (i1 & i2), and one output (o). The two parameters are linked by some kind of constraint (c1(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. Another way to say it is to have, for each tick in x1 representing i1/i2, the corresponding tick in x2 representing i2/i1 (constraint c1 is fairly easy to solve analytically). Does it make sense to anyone? Thanks i advance for your help. Martin. 
From: Hernán Gonzalo Asorey <asoreyh@gm...>  20110927 01:19:48

On Mon, Sep 26, 2011 at 21:30, Martin Genet <mgenet@...> wrote: > Dear GNUPlot: > > I have a system with two inputs (i1 & i2), and one output (o). > The two parameters are linked by some kind of constraint (c1(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. > Hi! 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)" hope this help. See help axes for further info. cheers, Hernán Another way to say it is to have, for each tick in x1 representing i1/i2, > the corresponding tick in x2 representing i2/i1 (constraint c1 is fairly > easy to solve analytically). > Does it make sense to anyone? > > Thanks i advance for your help. > Martin. > > >  > All the data continuously generated in your IT infrastructure contains a > definitive record of customers, application performance, security > threats, fraudulent activity and more. Splunk takes this data and makes > sense of it. Business sense. IT sense. Common sense. > http://p.sf.net/sfu/splunkd2dcopy1 > _______________________________________________ > gnuplotinfo mailing list > gnuplotinfo@... > https://lists.sourceforge.net/lists/listinfo/gnuplotinfo > 
From: Martin Genet <mgenet@lb...>  20110927 17:48:43

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 <mgenet@... <mailto:mgenet@...>> 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? Thanks again, Martin. 
From: Hernán Gonzalo Asorey <asoreyh@gm...>  20110927 18:00:19

Dear Martin, On Tue, Sep 27, 2011 at 14:48, Martin Genet <mgenet@...> 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 <mgenet@... <mailto: >> mgenet@...>> 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. > > > > > > > 
From: Martin Genet <mgenet@lb...>  20110927 20:48:27

Hi Hernán: Thanks for your help. I could finally manage to "map" x1 and x2 axis by putting the numbers "by hand" along x2 axis: set xlabel 'i1' set xtics nomirror set x2label 'i2' set x2tics("i2_value" i1_value_such_as_c(i1_value,i2_value)=0, ...) These graphs are not easy to do, but they rock like crazy! Thanks again for your help! Martin. On 09/27/2011 10:59 AM, Hernán Gonzalo Asorey wrote: > Dear Martin, > > On Tue, Sep 27, 2011 at 14:48, Martin Genet <mgenet@... <mailto:mgenet@...>> 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 <mgenet@... <mailto:mgenet@...> <mailto:mgenet@... <mailto:mgenet@...>>> 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. > > > > > > > 
Sign up for the SourceForge newsletter:
No, thanks