Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.graphics.apps.gnuplot > #1650
| 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 | 2013-02-18 10:23 -0800 |
| Organization | gnuplot development team |
| Message-ID | <kftrh2$3me$1@dont-email.me> (permalink) |
| References | <e53ae783-893f-4261-bd80-f9f1f19da0ce@u7g2000yqg.googlegroups.com> |
Followups directed to: comp.graphics.apps.gnuplot
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 | Next — Previous in thread | Next in thread | Find similar | Unroll 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