Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.graphics.apps.gnuplot > #1653
| 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 11:05 -0800 |
| Organization | gnuplot development team |
| Message-ID | <kfttvi$ikn$1@dont-email.me> (permalink) |
| References | <e53ae783-893f-4261-bd80-f9f1f19da0ce@u7g2000yqg.googlegroups.com> <kftrh2$3me$1@dont-email.me> <b644d97f-210f-4d8d-8a06-f8b817e7ae3c@d11g2000yqe.googlegroups.com> |
Followups directed to: comp.graphics.apps.gnuplot
Ivan K. wrote: > Just before you posted that, I found the page: > > http://gnuplot.10905.n7.nabble.com/bug-or-feature-td12930.html > > which addresses this exact issue. Based on > this page, like your suggestion, I changed: > > set term pngcairo enhanced size 400, 200 > > to: > > set term png enhanced butt size 400, 200 > > that is, I added "butt" to the "set term" command. > I also changed "pngcairo" to "png" as the option "butt" > did nothing to the resulting image with "pngcairo". Yes. I had forgotten that the cairo terminal interprets "butt" on the command line as "square" internally. The Nabble page you link to explains this clearly. Unfortunately the suggestion given there that additional line options could appear in gnuplot 4.6 was not implemented. It should go back on a wishlist for gnuplot 5. So I'm afraid that gnuplot does not provide the detailed control over individual line properties that you want. If you choose an output mode that can be further edited (notably PostScript or SVG) then you could tweak the result in an external tool like Acrobat or Inkscape. It is also possible that you could customize your locally installed PostScript prologue files to set your preferred line attributes by default in gnuplot. Ethan > > > HOWEVER, this solution only "sort of " works > as there is now a weird artifact at the beginning of > each line. Obviously, I would like to get rid of > this artifact. > > Thank you very much for your help; > > :::::::::::::: line_width_02.com :::::::::::::: > > set term png enhanced butt size 400, 200 > > set output 'line_width_02.png'; > set nokey; > set origin 0.0, 0.0; > > plot [ 0 :30 ][ 0: 50 ] \ > 'line_width_02_01.dat' w l lt 1 lw 1, \ > 'line_width_02_02.dat' w l lt 1 lw 7, \ > 'line_width_02_03.dat' w l lt 1 lw 11, \ > 'line_width_02_04.dat' w l lt 1 lw 15 > > :::::::::::::: line_width_02_01.dat :::::::::::::: > 10 40 > 20 40 > > :::::::::::::: line_width_02_02.dat :::::::::::::: > 10 30 > 20 30 > > :::::::::::::: line_width_02_03.dat :::::::::::::: > 10 20 > 20 20 > > :::::::::::::: line_width_02_04.dat :::::::::::::: > 10 10 > 20 10
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