Path: csiph.com!usenet.pasdenom.info!weretis.net!feeder4.news.weretis.net!eternal-september.org!feeder.eternal-september.org!mx05.eternal-september.org!.POSTED!not-for-mail From: sfeam Newsgroups: comp.graphics.apps.gnuplot Subject: Re: Setting line width increases line length Followup-To: comp.graphics.apps.gnuplot Date: Mon, 18 Feb 2013 10:23:16 -0800 Organization: gnuplot development team Lines: 52 Message-ID: References: Reply-To: sfeam@users.sourceforge.net Mime-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 7Bit Injection-Date: Mon, 18 Feb 2013 18:22:27 +0000 (UTC) Injection-Info: mx05.eternal-september.org; posting-host="e947cb29d2533e27aa00183e80187dbb"; logging-data="3790"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1++fkUC76yI0D/JrQwMHjkJ" User-Agent: KNode/4.4.9 Cancel-Lock: sha1:y/vsCPSG7DFw6PURthgrK3Cfs7c= Xref: csiph.com comp.graphics.apps.gnuplot:1650 Ivan K. wrote: > However, in the top line, I have set the line > width to "7" but not only does this increase > the width of the line (something I want) > but increasing the width increases the _length_ > of the line too (something I do not want). You are referring to the treatment of line segment ends ("end caps"). The options are conventionally called "butt", "square", and "round". See here, for example: http://i.stack.imgur.com/xCRe3.png Gnuplot's pngcairo terminal lets you choose between "butt" or "round". "square" is not currently supported. It sounds like you want set terminal pngcairo butt > In the example, even though the data for > both lines begins at x=10 and ends at x=20, the > top line is longer. > > > Can I increase the width of a line without > increasing the length? > > Thank you for your help; > > > > ::::::::::::: line_width_01.com ::::::::::::: > > set term pngcairo enhanced size 400, 200 > > set output 'line_width_01.png'; > set nokey; > set origin 0.0, 0.0; > > plot [ 0 :30 ][ 0: 50 ] \ > 'line_width_01_01.dat' with lines lw 1, \ > 'line_width_01_02.dat' with lines lw 7 > > ::::::::::::: line_width_01_01.dat ::::::::::::: > > 10 23 > 20 23 > > > ::::::::::::: line_width_01_02.dat ::::::::::::: > > 10 27 > 20 27