|
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. |