|
From: pban92 <pb...@ya...> - 2011-01-28 18:09:05
|
The code below generates the plot without any secondary axis. However, I am trying to add a secondary x-axis as done in this excel plot ( http://old.nabble.com/file/p30789209/test.xls test.xls ) but could not figure it out and hence this post. Any suggestion would be highly appreciated. This is the text file http://old.nabble.com/file/p30789209/test.txt test.txt . Many thanks. =================================== clear set term postscript eps enhanced "Helvetica" 20 set output "test.eps" set style line 1 lt 1 lw 1 set style line 2 lt 1 lw 3 set style line 3 lt 2 lw 1 set style line 4 lt 2 lw 3 set style line 5 lt 3 lw 1 set style line 6 lt 3 lw 3 set style line 7 lt 4 lw 1 set style line 8 lt 4 lw 3 set style line 9 lt 5 lw 1 set style line 10 lt 5 lw 3 set xrange [0:30] set yrange [0:0.9] unset key plot "test.txt" u 2:1 w l ls 1, \ "test.txt" u 3:1 w l ls 2, \ "test.txt" u 4:1 w l ls 3, \ "test.txt" u 5:1 w l ls 4, \ "test.txt" u 6:1 w l ls 5, \ "test.txt" u 7:1 w l ls 6, \ "test.txt" u 8:1 w l ls 7, \ "test.txt" u 9:1 w l ls 8, \ "test.txt" u 10:1 w l ls 9, \ "test.txt" u 11:1 w l ls 10, \ "test.txt" u 12:1 w l ls 10, \ "test.txt" u 13:1 w l ls 10 -- View this message in context: http://old.nabble.com/How-to-set-secondary-x-axis-similar-to-excel-plot-tp30789209p30789209.html Sent from the Gnuplot - User mailing list archive at Nabble.com. |
|
From: Thomas S. <t.s...@fz...> - 2011-01-28 19:14:25
|
set xtics nomirror set x2tics pban92 wrote: > > The code below generates the plot without any secondary axis. However, I > am trying to add a secondary x-axis as done in this excel plot ( > http://old.nabble.com/file/p30789209/test.xls test.xls ) but could not > figure it out and hence this post. Any suggestion would be highly > appreciated. This is the text file > http://old.nabble.com/file/p30789209/test.txt test.txt . Many thanks. > =================================== > > clear > set term postscript eps enhanced "Helvetica" 20 > set output "test.eps" > > set style line 1 lt 1 lw 1 > set style line 2 lt 1 lw 3 > set style line 3 lt 2 lw 1 > set style line 4 lt 2 lw 3 > set style line 5 lt 3 lw 1 > set style line 6 lt 3 lw 3 > set style line 7 lt 4 lw 1 > set style line 8 lt 4 lw 3 > set style line 9 lt 5 lw 1 > set style line 10 lt 5 lw 3 > > set xrange [0:30] > set yrange [0:0.9] > unset key > > plot "test.txt" u 2:1 w l ls 1, \ > "test.txt" u 3:1 w l ls 2, \ > "test.txt" u 4:1 w l ls 3, \ > "test.txt" u 5:1 w l ls 4, \ > "test.txt" u 6:1 w l ls 5, \ > "test.txt" u 7:1 w l ls 6, \ > "test.txt" u 8:1 w l ls 7, \ > "test.txt" u 9:1 w l ls 8, \ > "test.txt" u 10:1 w l ls 9, \ > "test.txt" u 11:1 w l ls 10, \ > "test.txt" u 12:1 w l ls 10, \ > "test.txt" u 13:1 w l ls 10 > > > -- View this message in context: http://old.nabble.com/How-to-set-secondary-x-axis-similar-to-excel-plot-tp30789209p30789278.html Sent from the Gnuplot - User mailing list archive at Nabble.com. |
|
From: pban92 <pb...@ya...> - 2011-01-28 20:42:35
|
Thanks Thomas! But I think my OP was not clear enough and hence the confusion. I am NOT looking for how to set tics but how to change the range of my primary x-axis as [0:3] while my secondary x-axis is [0:30] as in the excel file in my OP. Cheers! Thomas Sefzick wrote: > > set xtics nomirror > set x2tics > > > pban92 wrote: >> >> The code below generates the plot without any secondary axis. However, I >> am trying to add a secondary x-axis as done in this excel plot ( >> http://old.nabble.com/file/p30789209/test.xls test.xls ) but could not >> figure it out and hence this post. Any suggestion would be highly >> appreciated. This is the text file >> http://old.nabble.com/file/p30789209/test.txt test.txt . Many thanks. >> =================================== >> >> clear >> set term postscript eps enhanced "Helvetica" 20 >> set output "test.eps" >> >> set style line 1 lt 1 lw 1 >> set style line 2 lt 1 lw 3 >> set style line 3 lt 2 lw 1 >> set style line 4 lt 2 lw 3 >> set style line 5 lt 3 lw 1 >> set style line 6 lt 3 lw 3 >> set style line 7 lt 4 lw 1 >> set style line 8 lt 4 lw 3 >> set style line 9 lt 5 lw 1 >> set style line 10 lt 5 lw 3 >> >> set xrange [0:30] >> set yrange [0:0.9] >> unset key >> >> plot "test.txt" u 2:1 w l ls 1, \ >> "test.txt" u 3:1 w l ls 2, \ >> "test.txt" u 4:1 w l ls 3, \ >> "test.txt" u 5:1 w l ls 4, \ >> "test.txt" u 6:1 w l ls 5, \ >> "test.txt" u 7:1 w l ls 6, \ >> "test.txt" u 8:1 w l ls 7, \ >> "test.txt" u 9:1 w l ls 8, \ >> "test.txt" u 10:1 w l ls 9, \ >> "test.txt" u 11:1 w l ls 10, \ >> "test.txt" u 12:1 w l ls 10, \ >> "test.txt" u 13:1 w l ls 10 >> >> >> > > -- View this message in context: http://old.nabble.com/How-to-set-secondary-x-axis-similar-to-excel-plot-tp30789209p30789776.html Sent from the Gnuplot - User mailing list archive at Nabble.com. |
|
From: Thomas S. <t.s...@fz...> - 2011-01-29 16:40:11
|
"set x2tics" switches the secondary x-axis on. set xrange [0:3] set x2range [0:30] maybe you shouldn't upload an excel file but the resulting plot in gif, png or whatever graphics format. pban92 wrote: > > Thanks Thomas! But I think my OP was not clear enough and hence the > confusion. > I am NOT looking for how to set tics but how to change the range of my > primary x-axis as [0:3] while my secondary x-axis is [0:30] as in the > excel file in my OP. > Cheers! > > > > > Thomas Sefzick wrote: >> >> set xtics nomirror >> set x2tics >> >> >> pban92 wrote: >>> >>> The code below generates the plot without any secondary axis. However, I >>> am trying to add a secondary x-axis as done in this excel plot ( >>> http://old.nabble.com/file/p30789209/test.xls test.xls ) but could not >>> figure it out and hence this post. Any suggestion would be highly >>> appreciated. This is the text file >>> http://old.nabble.com/file/p30789209/test.txt test.txt . Many thanks. >>> =================================== >>> >>> clear >>> set term postscript eps enhanced "Helvetica" 20 >>> set output "test.eps" >>> >>> set style line 1 lt 1 lw 1 >>> set style line 2 lt 1 lw 3 >>> set style line 3 lt 2 lw 1 >>> set style line 4 lt 2 lw 3 >>> set style line 5 lt 3 lw 1 >>> set style line 6 lt 3 lw 3 >>> set style line 7 lt 4 lw 1 >>> set style line 8 lt 4 lw 3 >>> set style line 9 lt 5 lw 1 >>> set style line 10 lt 5 lw 3 >>> >>> set xrange [0:30] >>> set yrange [0:0.9] >>> unset key >>> >>> plot "test.txt" u 2:1 w l ls 1, \ >>> "test.txt" u 3:1 w l ls 2, \ >>> "test.txt" u 4:1 w l ls 3, \ >>> "test.txt" u 5:1 w l ls 4, \ >>> "test.txt" u 6:1 w l ls 5, \ >>> "test.txt" u 7:1 w l ls 6, \ >>> "test.txt" u 8:1 w l ls 7, \ >>> "test.txt" u 9:1 w l ls 8, \ >>> "test.txt" u 10:1 w l ls 9, \ >>> "test.txt" u 11:1 w l ls 10, \ >>> "test.txt" u 12:1 w l ls 10, \ >>> "test.txt" u 13:1 w l ls 10 >>> >>> >>> >> >> > > -- View this message in context: http://old.nabble.com/How-to-set-secondary-x-axis-similar-to-excel-plot-tp30789209p30795324.html Sent from the Gnuplot - User mailing list archive at Nabble.com. |
|
From: pban92 <pb...@ya...> - 2011-01-29 19:46:43
|
Thanks again Thomas for the clarification! Perfect! Thomas Sefzick wrote: > > "set x2tics" switches the secondary x-axis on. > > set xrange [0:3] > set x2range [0:30] > > maybe you shouldn't upload an excel file but the resulting plot in gif, > png > or whatever graphics format. > > > pban92 wrote: >> >> Thanks Thomas! But I think my OP was not clear enough and hence the >> confusion. >> I am NOT looking for how to set tics but how to change the range of my >> primary x-axis as [0:3] while my secondary x-axis is [0:30] as in the >> excel file in my OP. >> Cheers! >> >> >> >> >> Thomas Sefzick wrote: >>> >>> set xtics nomirror >>> set x2tics >>> >>> >>> pban92 wrote: >>>> >>>> The code below generates the plot without any secondary axis. However, >>>> I am trying to add a secondary x-axis as done in this excel plot ( >>>> http://old.nabble.com/file/p30789209/test.xls test.xls ) but could not >>>> figure it out and hence this post. Any suggestion would be highly >>>> appreciated. This is the text file >>>> http://old.nabble.com/file/p30789209/test.txt test.txt . Many thanks. >>>> =================================== >>>> >>>> clear >>>> set term postscript eps enhanced "Helvetica" 20 >>>> set output "test.eps" >>>> >>>> set style line 1 lt 1 lw 1 >>>> set style line 2 lt 1 lw 3 >>>> set style line 3 lt 2 lw 1 >>>> set style line 4 lt 2 lw 3 >>>> set style line 5 lt 3 lw 1 >>>> set style line 6 lt 3 lw 3 >>>> set style line 7 lt 4 lw 1 >>>> set style line 8 lt 4 lw 3 >>>> set style line 9 lt 5 lw 1 >>>> set style line 10 lt 5 lw 3 >>>> >>>> set xrange [0:30] >>>> set yrange [0:0.9] >>>> unset key >>>> >>>> plot "test.txt" u 2:1 w l ls 1, \ >>>> "test.txt" u 3:1 w l ls 2, \ >>>> "test.txt" u 4:1 w l ls 3, \ >>>> "test.txt" u 5:1 w l ls 4, \ >>>> "test.txt" u 6:1 w l ls 5, \ >>>> "test.txt" u 7:1 w l ls 6, \ >>>> "test.txt" u 8:1 w l ls 7, \ >>>> "test.txt" u 9:1 w l ls 8, \ >>>> "test.txt" u 10:1 w l ls 9, \ >>>> "test.txt" u 11:1 w l ls 10, \ >>>> "test.txt" u 12:1 w l ls 10, \ >>>> "test.txt" u 13:1 w l ls 10 >>>> >>>> >>>> >>> >>> >> >> > > -- View this message in context: http://old.nabble.com/How-to-set-secondary-x-axis-similar-to-excel-plot-tp30789209p30796330.html Sent from the Gnuplot - User mailing list archive at Nabble.com. |