Path: csiph.com!eternal-september.org!feeder.eternal-september.org!reader01.eternal-september.org!.POSTED!not-for-mail From: =?UTF-8?Q?J=c3=b6rg_Buchholz?= Newsgroups: comp.graphics.apps.gnuplot Subject: Re: How to generate dotted lines? Date: Thu, 2 Apr 2020 20:08:27 +0200 Organization: A noiseless patient Spider Lines: 28 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Date: Thu, 2 Apr 2020 18:08:27 -0000 (UTC) Injection-Info: reader02.eternal-september.org; posting-host="171e4ddae68a19f8d9776d4f506fa304"; logging-data="4779"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+ANijrSYeNpR9KyhswnXuTSniV/LFqNzk=" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.6.0 Cancel-Lock: sha1:Wh4H6R0LbgU3v9wiPFiWkbQzd9I= In-Reply-To: Content-Language: en-GB Xref: csiph.com comp.graphics.apps.gnuplot:4314 On 02.04.20 17:45, Bengt T wrote: > > >> >> set term pngcairo size 1200,900 >> set out 'dt.png' >> plot for [i=1:20] sin(x+i) w l dt i t "dt".i >> set out >> >> >> Jörg > > Works fine with datatype 1 to 5. dt 1 to 5 lines are repeated, with other colors, for dt 6 to 20. > > How to generate lines with symbols according to the right hand side of the "test" output? > There are only 5 different dashtypes predefined. You can add more by your own. See "help dashtype". Examples: plot f(x) dt 3 # use terminal-specific dash pattern 3 plot f(x) dt ".. " # construct a dash pattern on the spot plot f(x) dt (2,5,2,15) # numerical representation of the same pattern set dashtype 11 (2,4,4,7) # define new dashtype to be called by index plot f(x) dt 11 # plot using our new dashtype Jörg