Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.graphics.apps.gnuplot > #1650

Re: Setting line width increases line length

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 <sfeam@users.sourceforge.net>
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 <kftrh2$3me$1@dont-email.me> (permalink)
References <e53ae783-893f-4261-bd80-f9f1f19da0ce@u7g2000yqg.googlegroups.com>
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

Followups directed to: comp.graphics.apps.gnuplot

Show key headers only | View raw


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

Back to comp.graphics.apps.gnuplot | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

Setting line width increases line length "Ivan K." <ivan_521521@yahoo.com> - 2013-02-17 18:03 -0800
  Re: Setting line width increases line length sfeam <sfeam@users.sourceforge.net> - 2013-02-18 10:23 -0800
    Re: Setting line width increases line length "Ivan K." <ivan_521521@yahoo.com> - 2013-02-18 10:33 -0800
      Re: Setting line width increases line length "Ivan K." <ivan_521521@yahoo.com> - 2013-02-18 10:51 -0800
      Re: Setting line width increases line length sfeam <sfeam@users.sourceforge.net> - 2013-02-18 11:05 -0800
        Re: Setting line width increases line length "Ivan K." <ivan_521521@yahoo.com> - 2013-02-18 11:12 -0800
          Re: Setting line width increases line length "Ivan K." <ivan_521521@yahoo.com> - 2013-02-18 11:17 -0800

csiph-web