|
From: <lyn...@fr...> - 2010-09-13 19:52:19
|
Hello! Is it possible with gnuplot to have two different xranges on for the same plot? Eg. a function depending on a temperature and I want to have it plotted against degrees celcius but also degrees farenheit for each shown celcius value. Would it also be possible to not use x2 for that but have both values (°C and °F) on the x1 axis? Thanks for any help or hints Lynx |
|
From: Thomas S. <t.s...@fz...> - 2010-09-15 07:34:50
|
you plot the function against degree celsius. and you add a second axis with degree fahrenheit. for this purpose it is necessary to set the range for the first axis and then set the according range for the second axis. c2f(x)=x*9./5.+32. set xrange [0:100] set x2range [c2f(0):c2f(100)] set xtics out nomirror set format x "\n%g" set x2tics axis plot x lynx.abraxas wrote: > > Hello! > > > Is it possible with gnuplot to have two different xranges on for the same > plot? > Eg. a function depending on a temperature and I want to have it > plotted > against degrees celcius but also degrees farenheit for each shown > celcius > value. > Would it also be possible to not use x2 for that but have both values (°C > and > °F) on the x1 axis? > > Thanks for any help or hints > Lynx > > > ------------------------------------------------------------------------------ > Start uncovering the many advantages of virtual appliances > and start using them to simplify application deployment and > accelerate your shift to cloud computing > http://p.sf.net/sfu/novell-sfdev2dev > _______________________________________________ > gnuplot-info mailing list > gnu...@li... > https://lists.sourceforge.net/lists/listinfo/gnuplot-info > > -- View this message in context: http://old.nabble.com/two-different-x-ranges-for-the-same-plot-tp29702232p29715957.html Sent from the Gnuplot - User mailing list archive at Nabble.com. |
|
From: <lyn...@fr...> - 2010-10-20 07:42:19
|
On 15/09/10 00:34:40, Thomas Sefzick wrote: > > you plot the function against degree celsius. and you add a second > axis with degree fahrenheit. > for this purpose it is necessary to set the range for the first axis > and then set the according range for the second axis. > > c2f(x)=x*9./5.+32. > set xrange [0:100] > set x2range [c2f(0):c2f(100)] > set xtics out nomirror > set format x "\n%g" > set x2tics axis > plot x > Thanks Johannes and Thomas for Your answers. I'm wondering though, if it is possible in Thomas' idea to have the x2tics only appear where there is an xtic. Can the xaxis' and the x2axis' tics be correlated in such a way? Thanks for Your answers and any further help or hints on this. Lynx |
|
From: Thomas S. <t.s...@fz...> - 2010-10-22 13:58:49
|
with fixed axis ranges and defined xtics increment, yes: c2f(x)=x*9./5.+32. set xrange [0:100] set x2range [c2f(0):c2f(100)] set xtics out nomirror set xtics 10 set x2tics c2f(0),c2f(10)-c2f(0),c2f(100) set format x "\n%g" set format x2 "%g" set x2tics axis plot x lynx.abraxas wrote: > > On 15/09/10 00:34:40, Thomas Sefzick wrote: >> >> you plot the function against degree celsius. and you add a second >> axis with degree fahrenheit. >> for this purpose it is necessary to set the range for the first axis >> and then set the according range for the second axis. >> >> c2f(x)=x*9./5.+32. >> set xrange [0:100] >> set x2range [c2f(0):c2f(100)] >> set xtics out nomirror >> set format x "\n%g" >> set x2tics axis >> plot x >> > > Thanks Johannes and Thomas for Your answers. > I'm wondering though, if it is possible in Thomas' idea to have the > x2tics > only appear where there is an xtic. Can the xaxis' and the x2axis' tics > be > correlated in such a way? > > Thanks for Your answers and any further help or hints on this. > Lynx > > > > ------------------------------------------------------------------------------ > Download new Adobe(R) Flash(R) Builder(TM) 4 > The new Adobe(R) Flex(R) 4 and Flash(R) Builder(TM) 4 (formerly > Flex(R) Builder(TM)) enable the development of rich applications that run > across multiple browsers and platforms. Download your free trials today! > http://p.sf.net/sfu/adobe-dev2dev > _______________________________________________ > gnuplot-info mailing list > gnu...@li... > https://lists.sourceforge.net/lists/listinfo/gnuplot-info > > -- View this message in context: http://old.nabble.com/two-different-x-ranges-for-the-same-plot-tp29702232p30028960.html Sent from the Gnuplot - User mailing list archive at Nabble.com. |