|
From: Suchada P. <coo...@ho...> - 2011-03-03 07:35:45
|
Hi Is there anyone knows?, How to plot dashed line with gnuplot please? Now I use gnuplot 4.0, can this version plot dashed line? Now, my setting like this set terminal png medium set output 'xxx' set xlabel 'Time (minutes)' set ylabel 'xxx' set xtics 0, 5, 100 set ytics 0, 1, 5 set xrange [0:100] set yrange [0:5] set samples 10000 plot '/home/aa.dat' using 1:2 lw 3 title 'aa' with steps,'/home/bb.dat' using 1:3 lw 3 title 'bb' with steps,'/home/cc.dat' using 1:4 lw 3 title 'cc' with steps thanks, Cooky |
|
From: jody <jod...@gm...> - 2011-03-03 08:03:39
|
if you google "gnuplot dashed line" you get many hits, e.g. http://t16web.lanl.gov/Kawano/gnuplot/misc4-e.html http://stackoverflow.com/questions/2075283/choosing-line-type-and-color-in-gnuplot-4-0 hope this helps jody 2011/3/3 Suchada Pakapongpan <coo...@ho...>: > > Hi > > Is there anyone knows?, How to plot dashed line with gnuplot please? > Now I use gnuplot 4.0, can this version plot dashed line? > > Now, my setting like this > set terminal png medium > set output 'xxx' > set xlabel 'Time (minutes)' > set ylabel 'xxx' > set xtics 0, 5, 100 > set ytics 0, 1, 5 > set xrange [0:100] > set yrange [0:5] > set samples 10000 > plot '/home/aa.dat' using 1:2 lw 3 title 'aa' with steps,'/home/bb.dat' using 1:3 lw 3 title 'bb' with steps,'/home/cc.dat' using 1:4 lw 3 title 'cc' with steps > > thanks, > Cooky > ------------------------------------------------------------------------------ > Free Software Download: Index, Search & Analyze Logs and other IT data in > Real-Time with Splunk. Collect, index and harness all the fast moving IT data > generated by your applications, servers and devices whether physical, virtual > or in the cloud. Deliver compliance at lower cost and gain new business > insights. http://p.sf.net/sfu/splunk-dev2dev > _______________________________________________ > gnuplot-info mailing list > gnu...@li... > https://lists.sourceforge.net/lists/listinfo/gnuplot-info > > |
|
From: Suchada P. <coo...@ho...> - 2011-03-03 10:04:52
|
Now I use these command
set term postscript eps enhanced
set terminal png medium
set output 'xxx.png'
set style line 1 lt 1 lw 1
set style line 2 lt 2 lw 1
set style line 3 lt 3 lw 1
set style line 4 lt 6 lw 1
set style line 5 lt 1 lw 3
set style line 6 lt 2 lw 3
set style line 7 lt 3 lw 3
set style line 8 lt 6 lw 3
set xrange [-pi:pi]
plot sin( x) w l ls 1, sin(2*x) w l ls 2, \
sin(3*x) w l ls 3, sin(4*x) w l ls 4, \
cos( x) w l ls 5, cos(2*x) w l ls 6, \
cos(3*x) w l ls 7, cos(4*x) w l ls 8
but I'm confused, why not show the dashed line. Every line like solid line.
> Date: Thu, 3 Mar 2011 09:03:32 +0100
> Subject: Re: [Gnuplot-info] How to plot dashed line with gnuplot4.0
> From: jod...@gm...
> To: coo...@ho...
> CC: gnu...@li...
>
> if you google "gnuplot dashed line" you get many hits, e.g.
>
> http://t16web.lanl.gov/Kawano/gnuplot/misc4-e.html
> http://stackoverflow.com/questions/2075283/choosing-line-type-and-color-in-gnuplot-4-0
>
> hope this helps
> jody
>
> 2011/3/3 Suchada Pakapongpan <coo...@ho...>:
> >
> > Hi
> >
> > Is there anyone knows?, How to plot dashed line with gnuplot please?
> > Now I use gnuplot 4.0, can this version plot dashed line?
> >
> > Now, my setting like this
> > set terminal png medium
> > set output 'xxx'
> > set xlabel 'Time (minutes)'
> > set ylabel 'xxx'
> > set xtics 0, 5, 100
> > set ytics 0, 1, 5
> > set xrange [0:100]
> > set yrange [0:5]
> > set samples 10000
> > plot '/home/aa.dat' using 1:2 lw 3 title 'aa' with steps,'/home/bb.dat' using 1:3 lw 3 title 'bb' with steps,'/home/cc.dat' using 1:4 lw 3 title 'cc' with steps
> >
> > thanks,
> > Cooky
> > ------------------------------------------------------------------------------
> > Free Software Download: Index, Search & Analyze Logs and other IT data in
> > Real-Time with Splunk. Collect, index and harness all the fast moving IT data
> > generated by your applications, servers and devices whether physical, virtual
> > or in the cloud. Deliver compliance at lower cost and gain new business
> > insights. http://p.sf.net/sfu/splunk-dev2dev
> > _______________________________________________
> > gnuplot-info mailing list
> > gnu...@li...
> > https://lists.sourceforge.net/lists/listinfo/gnuplot-info
> >
> >
|
|
From: Thomas S. <t.s...@fz...> - 2011-03-03 11:38:19
|
run the 'test' command (instead of 'plot') for a specific terminal. if there are dashed lines - e.g. postscript terminal - in the resulting plot, then you may use them. if there are none, you can only use solid lines. Suchada Pakapongpan wrote: > > > Now I use these command > > set term postscript eps enhanced > set terminal png medium > set output 'xxx.png' > set style line 1 lt 1 lw 1 > set style line 2 lt 2 lw 1 > set style line 3 lt 3 lw 1 > set style line 4 lt 6 lw 1 > set style line 5 lt 1 lw 3 > set style line 6 lt 2 lw 3 > set style line 7 lt 3 lw 3 > set style line 8 lt 6 lw 3 > set xrange [-pi:pi] > plot sin( x) w l ls 1, sin(2*x) w l ls 2, \ > sin(3*x) w l ls 3, sin(4*x) w l ls 4, \ > cos( x) w l ls 5, cos(2*x) w l ls 6, \ > cos(3*x) w l ls 7, cos(4*x) w l ls 8 > > but I'm confused, why not show the dashed line. Every line like solid > line. > >> Date: Thu, 3 Mar 2011 09:03:32 +0100 >> Subject: Re: [Gnuplot-info] How to plot dashed line with gnuplot4.0 >> From: jod...@gm... >> To: coo...@ho... >> CC: gnu...@li... >> >> if you google "gnuplot dashed line" you get many hits, e.g. >> >> http://t16web.lanl.gov/Kawano/gnuplot/misc4-e.html >> http://stackoverflow.com/questions/2075283/choosing-line-type-and-color-in-gnuplot-4-0 >> >> hope this helps >> jody >> >> 2011/3/3 Suchada Pakapongpan <coo...@ho...>: >> > >> > Hi >> > >> > Is there anyone knows?, How to plot dashed line with gnuplot please? >> > Now I use gnuplot 4.0, can this version plot dashed line? >> > >> > Now, my setting like this >> > set terminal png medium >> > set output 'xxx' >> > set xlabel 'Time (minutes)' >> > set ylabel 'xxx' >> > set xtics 0, 5, 100 >> > set ytics 0, 1, 5 >> > set xrange [0:100] >> > set yrange [0:5] >> > set samples 10000 >> > plot '/home/aa.dat' using 1:2 lw 3 title 'aa' with steps,'/home/bb.dat' >> using 1:3 lw 3 title 'bb' with steps,'/home/cc.dat' using 1:4 lw 3 title >> 'cc' with steps >> > >> > thanks, >> > Cooky >> > >> ------------------------------------------------------------------------------ >> > Free Software Download: Index, Search & Analyze Logs and other IT data >> in >> > Real-Time with Splunk. Collect, index and harness all the fast moving >> IT data >> > generated by your applications, servers and devices whether physical, >> virtual >> > or in the cloud. Deliver compliance at lower cost and gain new business >> > insights. http://p.sf.net/sfu/splunk-dev2dev >> > _______________________________________________ >> > gnuplot-info mailing list >> > gnu...@li... >> > https://lists.sourceforge.net/lists/listinfo/gnuplot-info >> > >> > > > ------------------------------------------------------------------------------ > Free Software Download: Index, Search & Analyze Logs and other IT data in > Real-Time with Splunk. Collect, index and harness all the fast moving IT > data > generated by your applications, servers and devices whether physical, > virtual > or in the cloud. Deliver compliance at lower cost and gain new business > insights. http://p.sf.net/sfu/splunk-dev2dev > _______________________________________________ > gnuplot-info mailing list > gnu...@li... > https://lists.sourceforge.net/lists/listinfo/gnuplot-info > > -- View this message in context: http://old.nabble.com/How-to-plot-dashed-line-with-gnuplot4.0-tp31056657p31057994.html Sent from the Gnuplot - User mailing list archive at Nabble.com. |
|
From: Becker, M. <M.B...@st...> - 2011-03-03 12:43:22
|
Suchada,
your problem is that you set the terminal twice.
So you end up with the same settings as before as the second "set terminal" command overwrites the first one.
You should replace
set terminal png medium
with
set term postscript eps enhanced
and set a postscript file as output.
Martin
-----Ursprüngliche Nachricht-----
Von: Suchada Pakapongpan [mailto:coo...@ho...]
Gesendet: Do 03.03.2011 11:04
An: jod...@gm...
Cc: gnu...@li...
Betreff: Re: [Gnuplot-info] How to plot dashed line with gnuplot4.0
Now I use these command
set term postscript eps enhanced
set terminal png medium
set output 'xxx.png'
set style line 1 lt 1 lw 1
set style line 2 lt 2 lw 1
set style line 3 lt 3 lw 1
set style line 4 lt 6 lw 1
set style line 5 lt 1 lw 3
set style line 6 lt 2 lw 3
set style line 7 lt 3 lw 3
set style line 8 lt 6 lw 3
set xrange [-pi:pi]
plot sin( x) w l ls 1, sin(2*x) w l ls 2, \
sin(3*x) w l ls 3, sin(4*x) w l ls 4, \
cos( x) w l ls 5, cos(2*x) w l ls 6, \
cos(3*x) w l ls 7, cos(4*x) w l ls 8
but I'm confused, why not show the dashed line. Every line like solid line.
> Date: Thu, 3 Mar 2011 09:03:32 +0100
> Subject: Re: [Gnuplot-info] How to plot dashed line with gnuplot4.0
> From: jod...@gm...
> To: coo...@ho...
> CC: gnu...@li...
>
> if you google "gnuplot dashed line" you get many hits, e.g.
>
> http://t16web.lanl.gov/Kawano/gnuplot/misc4-e.html
> http://stackoverflow.com/questions/2075283/choosing-line-type-and-color-in-gnuplot-4-0
>
> hope this helps
> jody
>
> 2011/3/3 Suchada Pakapongpan <coo...@ho...>:
> >
> > Hi
> >
> > Is there anyone knows?, How to plot dashed line with gnuplot please?
> > Now I use gnuplot 4.0, can this version plot dashed line?
> >
> > Now, my setting like this
> > set terminal png medium
> > set output 'xxx'
> > set xlabel 'Time (minutes)'
> > set ylabel 'xxx'
> > set xtics 0, 5, 100
> > set ytics 0, 1, 5
> > set xrange [0:100]
> > set yrange [0:5]
> > set samples 10000
> > plot '/home/aa.dat' using 1:2 lw 3 title 'aa' with steps,'/home/bb.dat' using 1:3 lw 3 title 'bb' with steps,'/home/cc.dat' using 1:4 lw 3 title 'cc' with steps
> >
> > thanks,
> > Cooky
> > ------------------------------------------------------------------------------
> > Free Software Download: Index, Search & Analyze Logs and other IT data in
> > Real-Time with Splunk. Collect, index and harness all the fast moving IT data
> > generated by your applications, servers and devices whether physical, virtual
> > or in the cloud. Deliver compliance at lower cost and gain new business
> > insights. http://p.sf.net/sfu/splunk-dev2dev
> > _______________________________________________
> > gnuplot-info mailing list
> > gnu...@li...
> > https://lists.sourceforge.net/lists/listinfo/gnuplot-info
> >
> >
-+- Virus checked (incoming scanned by mailgate.cosus.de)
|
|
From: Suchada P. <coo...@ho...> - 2011-03-07 12:23:54
|
Hi I also can't plot dashed line. Can you show me the complete commands to plot a simple dashed line graph then return the output picture. thanks Cooky > Subject: AW: [Gnuplot-info] How to plot dashed line with gnuplot4.0 > Date: Thu, 3 Mar 2011 13:24:12 +0100 > From: M.B...@st... > To: coo...@ho... > CC: gnu...@li... > > Suchada, > > your problem is that you set the terminal twice. > So you end up with the same settings as before as the second "set terminal" command overwrites the first one. > You should replace > set terminal png medium > with > set term postscript eps enhanced > and set a postscript file as output. > > Martin > > > > -----Ursprüngliche Nachricht----- > Von: Suchada Pakapongpan [mailto:coo...@ho...] > Gesendet: Do 03.03.2011 11:04 > An: jod...@gm... > Cc: gnu...@li... > Betreff: Re: [Gnuplot-info] How to plot dashed line with gnuplot4.0 > > > Now I use these command |
|
From: Suchada P. <coo...@ho...> - 2011-03-09 09:17:29
|
Hi vic,
Thank you so much for your help.
Thanks
Cooky
Subject: Re: [Gnuplot-info] How to plot dashed line with gnuplot4.0
From: vi...@no...
Date: Mon, 7 Mar 2011 17:26:50 -0500
CC: gnu...@li...
To: coo...@ho...
Whether or not you can plot dashed lines depends on the terminal.
For example I often use the epslatex terminal. The Gnuplot commands
set term epslatex color colortext
set output "test_epslatex_output.tex"
followed by "\input{test_epsoutput}" from in an appropriate LaTeX script produces a PDF of the epslatex test picture. Most of the lines in this picture are dashed or dotted. For example the lines 0 through 9 are all different and 9 of these are dashed and/or dotted. Here is the test picture.
On the other hand the commands set term pdfcairo set output "test_pdfcairo.pdf" produces a PDF file with only line type 0 dotted. There are no dashed lines possible. Here is the test picture.
|